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 are the advantages of pointers?
Please explain the reference variable in c++?
What is an arraylist c++?
Why would you use pointers in c++?
What does #define mean in c++?
Where and why do I have to put the "template" and "typename" keywords?
What is recursion?
What are the extraction and insertion operators in c++?
Explain the concept of dynamic allocation of memory?
When do we run a shell in the unix system? How will you tell which shell you are running?
What are keywords in c++?
What do you mean by stack unwinding in c++?
What is the meaning of string in c++?
What does I ++ mean in c++?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?