gcc question about the embedded type definitions

Serge Fukanchik fuxx@mail.ru
Fri Dec 3 11:29:00 GMT 2004


Nathan Sidwell wrote:
> in C it is visible, in C++ it is not.
?! In C++ all members of `struct' are public by default
and hence fully accessible. You have to explicitly say `private:'.

On the other side all members of `class' are private by default.
You can not access them unless you say `public:'
---
Serge




More information about the Gcc-help mailing list