C structures cannot have member function while C++ class always has.
C structures must have at least one data member in it to compile. C++ class can be empty. It is possible to have a C++ class without member variables and member functions.
Static member variables are not allowed in C structures. C++ can have static members.
You have viewed 1 page out of 62. Your C++ learning is 0.00% complete. Login to check your learning progress.
C++ this pointer in static function
Can Destructor be overloaded
Understand vptr/vtable vfptr/vftable pictorial view
Template vs macro in c++
Default access modifier of structure
Make money through passive income
Get education loan for higher study
Best budget laptops for students
Best budget mobile phones for students
EQuestionAnswers is a non-profit organization. We publish educational articles and interview materials. Most of the viewers prefer to signup and stay connected with us. We maintain the viewer's privacy and do not send bulk or spam emails. Please signup and start learning with us.
By creating an account you agree to our Terms & Privacy.