Differences between class and struct

This tip submitted by Ali Nawkhas Murad on 2011-12-26 09:43:22. It has been viewed 14998 times.
Rating of 7.9 with 167 votes



There is no difference between class and struct, except the members of class are private by default and those of struct are public by default. What you can do with a class you can do with a struct.



More tips

Help your fellow programmers! Add a tip!