|
I haven't read any real difference between struct and class in C++ A class has a constructor and destructor and all things are private by default A struct doesn't have a constructor or destructor and are public by default Other than these differences they are exactly the same am I wrong?
Is one a better choice over the other in certain situations?
This post has been edited by NickDMax: 16 Sep, 2009 - 11:59 AM
|