What is the difference between C++ structs & C++ classes?
i. in c++ structures by default members are public, where as in c++ classes by default members are private.
ii. when you inherit a struct default is assumed as public, where as if you inherit a class default is assume as private.
iii. c++ structures can contain only variables and not functions. Where as c++ classes can contain both variables and member functions.