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
Is overriding possible in c++?
Which should be more useful: the protected and public virtuals?
Does c++ support exception handling?
What is a far pointer? where we use it?
Can a built-in function be recursive?
Explain what happens when a pointer is deleted twice?
Define a conversion constructor?
What is data type in c++?
Is c++ the best programming language?
When should we use container classes instead of arrays?
What is c++ and its uses?
What are literals in C++?
Define linked lists with the help of an example.
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
What is type of 'this' pointer?