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
Which operator cannot overload?
What is virtual base class uses?
How can you specify a class in C++?
What is the difference between a "copy constructor" and an "assignment operator" in C++?
What is the difference between structure and class?
What is singleton class in c++?
What is the best c++ book for beginners?
What is a down cast?
Which function cannot be overloaded c++?
Define what is constructor?
Explain what is class definition in c++ ?
What is implicit pointer in c++?
How does c++ sort work?
What are the rules about using an underscore in a c++ identifier?
What is pointer -to-members in C++? Give their syntax?