

InterviewSolution
Saved Bookmarks
1. |
Solve : Class Vs Structure in CPP? |
Answer» It is said dat class and structure are same in CPP. But, does structure can also have ABSTRACTION, encapsulation, inheritance, polymorphism as well... (please NOTIFY if any notion about union and enum in this)... The DIFFERENCE is that members of a class are private by default, but members of a STRUCT are public by default. inheritance between classes is private by default, and inheritance between STRUCTS is public. |
|