Mail Archives: djgpp/2000/04/06/15:53:42
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 -