In C++, Structure also supports Encapsulation,
Data hiding, Inheritance, polymorphism, operator
overloading and the concept of friend functions.
Constructors & Destructors too.
It behaves exactly similar to that of a class.
Then, what is the difference between the two ?
The default scope of structure is public and class
is private. Is it the only difference ?