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
Discussion on error handling of C++ .
Do you know about latest advancements in C++ ?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
What are the benefits of oop in c++?
What is the insertion operator and what does it do?
What is the full form nasa?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
How can we read/write Structures from/to data files?
True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
Is java a c++?
What is c++ runtime?
What are the advantages of using typedef in a program?
Difference between overloaded functions and overridden functions
When do we run a shell in the unix system? How will you tell which shell you are running?
What are the methods of exporting a function from a dll?