What is the difference between Class and Structure?
Answer Posted / suresh ghosh
1.class by default used private access specifier but structure used public.
2.class is reference type but structure is value type.
3.class used stack algorithm but structure used heap algorithm.
4.structure don't used public access specifier.
5.class used inheritance but structure don't.
Is This Answer Correct ? | 14 Yes | 7 No |
Post New Answer View All Answers
Which format specifier is used for printing a pointer value?
What is c++ hash?
What is the full form of dos?
Is java made in c++?
When we use Abstract Class and when we use Interface?where we will implement in real time?
What are the differences between the function prototype and the function defi-nition?
What is an incomplete type in c++?
Why c++ does not have finally?
what do you mean by volatile variable?
What are the classes in c++?
How does c++ sort work?
Does c++ have foreach?
What are the uses of typedef in a program?
What is the use of ::(scope resolution operator)?
Comment on assignment operator in c++.