What is the difference between Class and Structure?
Answer Posted / ramesh.alavala
class provides data hiding,structures doesn't provide.
class support polymorphism,structures doesn't support.
classes by default are inherited by privately,structures are
inherited by publicly.
classes can be abstract, structures can't be abstract.
Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What does flush do?
What is setf in c++?
What is the array and initializing arrays in c++?
Why can’t you call invariants() as the first line of your constructor?
What is the use of class in c++?
Why is swift so fast?
Can a list of string be stored within a two dimensional array?
What is the type of this pointer in c++?
What is one dimensional array in c++?
Define linked lists with the help of an example.
How do I make turbo c++ full screen?
Is c++ an integer?
What is polymorphism & list its types in c++?
What are the methods of exporting a function from a dll?
Why is it called c++?