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 java easier than c++?
What are the 3 levels of programming languages?
What is type of 'this' pointer?
What are compilers in c++?
Is c++ a good beginners programming language?
How do you define a class in c++?
Explain the different access specifiers for the class member in c++.
How do you flush a buffer in c++?
Where must the declaration of a friend function appear?
What is the cout in c++?
When do we run a shell in the unix system?
What is the use of bit fields in structure declaration?
what is C++ exceptional handling?
What is using namespace std in c++?
What problems might the following macro bring to the application?