Play and learn 300 000+ tabs online

Wednesday, June 2, 2010

Classes Vs Structures in C++

If we find the difference between Classes and Structures in C++,
1) Classes are inherited as private by default, structures are inherited as publicly.
2) Classes members are private by, structures members are public as default


ClassesStructures
Members are Private
Members are Public
Inherited PrivatelyInherited Publically


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.