Differences between class and struct

This tip submitted by Ali Nawkhas Murad on 2011-12-26 09:43:22. It has been viewed 17353 times.
Rating of 5.9 with 244 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!