[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: g++ linker error



Previously Philippe Troin wrote:
> Nugzar Nebieridze <nugzar@cyberjunkie.com> writes:
> > in this example you must use "class" instead of "struct", structure does not
> > support functions.
> 
> Go get a good C++ book too !

Lets explain this a bit :). The only difference between a class and a struct
in C++ is the default protection that members get. With a class everything
is private by default, and with a struct everything is public by default.

Wichert.

-- 
  _________________________________________________________________             
 / Generally uninteresting signature - ignore at your convenience  \            
| wichert@liacs.nl                    http://www.liacs.nl/~wichert/ |           
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0  2805 3CB8 9250 2FA3 BC2D |           

Attachment: pgpMdXQP6M8NB.pgp
Description: PGP signature


Reply to: