What is the difference between Class and Structure?
Answer Posted / swetcha
The difference between a class and a structure is that, by
default, all of the members of a class are private and, by
default, all of the members of a structure are public.
Is This Answer Correct ? | 797 Yes | 102 No |
Post New Answer View All Answers
What is fflush c++?
How do you remove an element from a set in c++?
What is the difference between public and private data members?
Explain operator overloading.
What is exception handling? Does c++ support exception handling?
What are the advantage of using register variables?
What's the order in which the local objects are destructed?
How would you find out if a linked-list is a cycle or not?
what is data encapsulation in C++?
What is polymorphism and its type in c++?
What it is and how it might be called (2 methods).
Differentiate between declaration and definition.
We use library functions in the program, in what form they are provided to the program?
What is the difference between reference and pointer?
What is the object serialization?