What is the difference between Class and Structure?
Answer Posted / vandana mishra
Class is much broader,real world applicable 1-1-1: concept whereas structure is a primitive concept with poor internal organisation.
2: structure contains only data while class bind both data & member functions.
3: class provide data hiding,inheritance etc but structure didn't.
4: if we not define constructor in class there constructor automaticly invoke but in structure it does not happen automaticly.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is empty stack c++?
What is scope operator in c++?
Please explain the reference variable in c++?
What is the precedence when there is a global variable and a local variable in the program with the same name?
what are function pointers?
What is the use of class in c++?
Is c++ free?
What are references in c++?
Explain unexpected() function?
How does code-bloating occur in c++?
What is increment operator in c++?
Is c++ a low level language?
Explain overriding.
Differentiate between late binding and early binding. What are the advantages of early binding?
Write about the retrieval of n number of objects during the process of delete[]p?