Mail Archives: djgpp/2000/04/06/15:01:30
Ken Power <iam AT not DOT you> wrote:
> Wed, 05 Apr 2000 17:32:28 GMT, in comp.os.msdos.djgpp, Damian Yerrick
> <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> managed to squeak:
>>A class is like a struct with functions in it, right?
> Similar yes, but with 'added' features. AFAICR, structs, in the c++
> standard, do not support private, public, or protected features that
> classes do.
Not true. Last time I read about it, 'struct' supports all the same
features in C++ as 'class'. The only difference between the two is the
two is the default protection status of members: for 'class', it's
'protected', for 'struct' it's 'public'. Mainly to stay compatible
with C code compiled as C++.
AFAICS, C++ doesn't really need the 'class' keyword at all.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -