Mail Archives: djgpp/2000/04/07/13:07:05
Quota DJ Delorie <dj AT delorie DOT com>:
>
> > 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:
>
> Wrong. "struct" and "class" are *identical* except
for the default
> protection. There are no other differences between
structs and
> classes. Even the parser doesn't treat them
differently.
True. They are "so identical" that it is possible to
have methods inside structs. People are so used to C
conventions that this feature is usually ignored, and
many get to think it is not allowed by C++!
ciao
Giacomo
------------------------------------------------------
Giacomo Degli Esposti - pad2369 AT iperbole DOT bologna DOT it
- Raw text -