Answer Posted / vinay singh
the size of class is nothing until it will not create an object. Class is a template so class object size is determined.So here empty class object size is 1 byte and object is created on managed heap.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What's the "software peter principle”?
Will a catch statement catch a derived exception if it is looking for the base class?
Why do we need templates?
Is c++ harder than java?
What is the use of setfill in c++?
What is meant by const_cast?
Define anonymous class.
What are proxy objects in c++?
How do you clear a set in c++?
What is #include iostream in c++?
What are friend functions in C++?
Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?
By using c++ with an example describe linked list?
What does catch(…) mean?
Differentiate between a constructor and a destructor in c++.