What is the difference between Class and Structure?
Answer Posted / eshetu
1. IN STRUCTURE THE DATA MEMBER BY DEFAULT IS PUBLIC BUT IN
CLASS THE DATA MEMBER ARE PRIVATE.
2. THE STRUCTURE ONLY CONTAIN DATA MEMBER BUT CLASS CONTAIN
DATA MEMBER & MEMBER FUNCTION.
3.IN STRUCTURE THE STRUCTURE NAME CAN'T STAND ALONE.BUT THE
CLASS NAME CAN STAND ALONE.
| Is This Answer Correct ? | 10 Yes | 5 No |
Post New Answer View All Answers
Where are setjmp and longjmp used in c++?
What is the meaning of c++?
What are the manipulators in c++?
What are multiple inheritances (virtual inheritance)?
What does the ios::ate argument do?
How one would use switch in a program?
What is friend class in c++ with example?
How does work in c++?
What is format for defining a structure?
How do I exit turbo c++?
What is flag in computer?
If you don’t declare a return value, what type of return value is assumed?
What is flush c++?
Define the process of error-handling in case of constructor failure?
Differentiate between late binding and early binding.