What are the differences between a struct and a class in
C++?
Answer Posted / ramesh kasi
The only difference is related to the default access
specifier.
The members of a structure have public access by default.
The members of a calss have private access by default.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What's c++ used for?
What is ios class in c++?
What is the best way to take screenshots of a window with c++ in windows?
Define a nested class. Explain how it can be useful.
What are the two types of polymorphism?
Write about all the implicit member functions of a class?
Explain dangling pointer.
What is the difference between an external iterator and an internal iterator?
Can we make copy constructor private in c++?
What do you understand by pure virtual function? Write about its use?
Can we overload operator in c++?
What is a singleton c++?
Which software is best for c++ programming?
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
What are the various storage classes in C++?