Possible Duplicate:
What are the differences between struct and class in C++
C++ – struct vs. class
How are structures different from objects and classes in C++? Is there any performance benefit to using objects or structures?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Structures and classes are identical; the language standard uses the term “class” to refer to both. The only difference between defining a class using the
structor theclasskeyword is the default accessibility of members and base classes; there is no difference in their runtime behaviour or performance.An “object” is a run-time instance of a type. In C++, the term is used for instances of any type, including classes and fundamental types.