delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/06/15:53:42

From: iam AT not DOT you (Ken Power)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: classes
Message-ID: <38eda615.11483373@news.mysolution.com>
References: <eeLF4.13555$K9 DOT 107792 AT typhoon DOT nyroc DOT rr DOT com> <v7umesob3dvcog3a0nhe9e8h4trging7v5 AT 4ax DOT com>
X-Newsreader: Forte Agent 1.5/32.451
MIME-Version: 1.0
Lines: 30
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
X-Complaints-To: support AT usenetserver DOT com
NNTP-Posting-Date: Thu, 06 Apr 2000 11:08:37 EDT
Organization: WebUseNet Corp http://www.usenetserver.com - Home of the fastest NNTP servers on the Net.
Date: Thu, 06 Apr 2000 15:04:45 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Wed, 05 Apr 2000 17:32:28 GMT, in comp.os.msdos.djgpp, Damian Yerrick
<Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> managed to squeak:

>On Sun, 02 Apr 2000 17:14:50 GMT, "John" <fubu36 AT stny DOT rr DOT com> wrote:
>
>>I'm new to classes, Is the anyway that I would be able to do this?
>
>A class is like a struct with functions in it, right?
Similar yes, but with 'added' features. AFAICR, structs, in the c++
standard, do not support private, public, or protected features that
classes do. In other words:

class myClass
{
	private:
	//anything in here is only accessible by class methods
	protected:
	//anything in here may be accessed by class method and
sub-class methods
	public:
	//accessible by class methods and main program
};

Not very good but may give you a general idea.

KP
--------------------------------
Ken Power
uncle_wiggly at bigfoot dot com
--------------------------------


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019