C
Corno
Hi all,
I was just wondering why a class declaration also includes the private
members of a class. Is this information needed by other classes for
compiling and/or linking or is this just an historical issue?
I can see why subtypes and friends need this information but what about
other related classes.
I would imagine that by declaring the members in a source file or at least
in another header file the 'public' header file would be more fit for the
role of abstract interface.
Corno
I was just wondering why a class declaration also includes the private
members of a class. Is this information needed by other classes for
compiling and/or linking or is this just an historical issue?
I can see why subtypes and friends need this information but what about
other related classes.
I would imagine that by declaring the members in a source file or at least
in another header file the 'public' header file would be more fit for the
role of abstract interface.
Corno