Difference between Structure and Class in C++?
Answer Posted / ashish raghuvanshi
Basically in C++ structure and class are same but with some
minor diffrences listed below:-
1. In classes all the members by default are private but in
structure members are public by default.
2. There is no term like constructor and destructor for
structs, but for class compiler creates default if you
don't provide.
| Is This Answer Correct ? | 79 Yes | 14 No |
Post New Answer View All Answers
How does an stl file work?
What is the stl, standard template library?
What are the different types of stl containers?
In what scenario does the Logical file and Physical file being used?
What are the various types of stl containers?
Who created stl?
totoo po ba ang manga aliens!
How do I convert a stl file?
What is a standard template library (stl)? What are the various types of stl containers?
What is stl stand for?
How stl is different from the c++ standard library?
sir please send me bpcl previous question papers
What is a list in c++ stl?
Who wrote stl?
How do you convert stl to steps?