On (22 Apr 97) Cameron Clark wrote to Balog Pal...
BP> So class {public: ... } is the same as struct, and struct
CC> {private: ... } is the same as class.
CC> Structs don't have auto executed constructors/destructors that are
CC> called all the way down/and up the inheritence chain, do they?
Yes, they do.
CC> Do struct have inheritence and polymophic capabilities?
CC> Late binding? etc. etc.
Yes. As Balog said, the _only_ difference between `class' and `struct'
in C++ is that in a class, visibility defaults to private, while in a
struct, visibility defaults to public. There is _no_ other difference
at all.
Later,
Jerry.
... The Universe is a figment of its own imagination.
--- PPoint 1.90
---------------
* Origin: Point Pointedly Pointless (1:128/166.5)
|