Mail Archives: djgpp/1999/04/01/19:13:50
On Wed, 31 Mar 1999 09:15:30 GMT, Willem D <wduminy AT my-dejanews DOT com>
wrote:
>Hi DarkSun, The difference between a class and a struct is nada! Although, I
>agree fully with you - and use the class keyword in these instances - it
>seems to be a matter of preference. Maybe someone knows what the ANSI C++
>standard specifies -- can a struct have functions according the the standard?
IIRC, the only practical difference between a struct and a class in
ANSI C++ is that the members/methods of a struct are public access by
default; the members/methods of a class are private access by default.
-Christopher Webb
- Raw text -