Differences between a Structure in C++ and a Class in C++

-Members of a class are private by default, whereas members of a struct are public by default.
-Inheritance between classes is also private by default, and inheritance between structs is public by default.

0 comments:

Post a Comment