What is the difference between Class and Structure?
Answer Posted / vinod
The difference between a class and a structure is that, by
default, all of the members of a class are private and also private,public and protected but in structure by
default, all of the members of a structure are public.
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
Explain the pure virtual functions?
Write about the scope resolution operator?
What are the new features that iso/ansi c++ has added to original c++ specifications?
what is COPY CONSTRUCTOR and what is it used for?
How is new() different from malloc()?
When you overload member functions, in what ways must they differ?
Comment on c++ standard exceptions?
Is c++ proprietary?
Why null pointer is used?
What is a float in c++?
Why was c++ made?
What is function overloading in C++?
How do you invoke a base member function from a derived class in which you have not overridden that function?
What is the difference between delegation and implemented-in-terms-of?
Can user-defined object be declared as static data member of another class?