This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc question about the embedded type definitions


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]