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
Can we use this pointer in a class specific, operator-overloading function for new operator?
Are c and c++ similar?
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
Explain the difference between overloading and overriding?
What does int * mean in c++?
What does count ++ do in c++?
Can a program run without main?
Do the names of parameters have to agree in the prototype, definition, and call to the function?
What do you mean by enumerated data type?
What is a memory leak c++?
Differentiate between a constructor and a destructor in c++.
What is cout flush?
What character terminates all character array strings a) b) . c) END
What is type of 'this' pointer? Explain when it is get created?
What is the most common mistake on c++ and oo projects?