What is the difference between Class and Structure?
Answer Posted / vadivel
i. Structure are value type where as class are reference
type.
ii. Structure are default public where as class are default
private.
iii. 'this' pointer will work only in class.
| Is This Answer Correct ? | 395 Yes | 78 No |
Post New Answer View All Answers
What are references in c++? What is a local reference?
What happens when the extern "c" char func (char*,waste) executes?
How do you invoke a base member function from a derived class in which you have not overridden that function?
What is stl containers in c++?
What is c++ prototype?
What are iterators in c++?
How does a C++ structure differ from a C++ class?
How important is c++?
Explain deep copy?
What is a dangling pointer in c++?
Differentiate between the message and method in c++?
What is iterator in c++?
What is the difference between function overloading and operator overloading?
What is a virtual destructor? Explain the use of it?
What are disadvantages of pointers?