From: iam AT not DOT you (Ken Power) Newsgroups: comp.os.msdos.djgpp Subject: Re: classes Message-ID: <38eda615.11483373@news.mysolution.com> References: X-Newsreader: Forte Agent 1.5/32.451 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 managed to squeak: >On Sun, 02 Apr 2000 17:14:50 GMT, "John" 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 --------------------------------