What is the size of class
Answers were Sorted based on User's Feedback
Answer / sagar
there is no size for class . class is a blue print it s not hold any memory but object can hold the memory .................
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / nagesh
To find the size of class ...find size of the object of that
class.
It will be 1.
| Is This Answer Correct ? | 1 Yes | 3 No |
Answer / ram
size of empty class object will be one byte.
When the class is with member variables and virtual member
fuction the size of the object will be depends on padding.
ex:
class Trial
{
public:
virtual void func() {};
char c;
};
printf("SizeofTrial: %d\n", sizeof(Trial));
SizeofTrial: 8
| Is This Answer Correct ? | 4 Yes | 8 No |
Answer / ajay senwal
Class size is one factor to consider when evaluating a
school’s effectiveness. But small class size alone does not
ensure a good education. The quality of the teaching, the
school leadership, the size of the school, the amount of
parent involvement and other factors are important to
consider, too
| Is This Answer Correct ? | 1 Yes | 10 No |
Answer / maneesh
Size of class is size of member variables plus virtual
functions used in class. For each virtual function it takes
2 byte for setting the Vptr table.
| Is This Answer Correct ? | 2 Yes | 13 No |
What is the use of CCmdTarget ?
What is model and modeless dialog box ? Give some examples?
What four types of properties are supported by an ActiveX control?
How can we create thread in MFC framework?
What is LPCTSTR? What does LP denote it?
Tell me the different controls in MFC ?
Can you explaing the relashionship between document,frame and view ?
Have you ever used win32 APIs ?
What are the special requirements for dialog box resources used in a form view?
Name the Synchronization objects?
What function is used to retrieve the currently selected index in a list box?
What is the difference between ASSERT and VERIFY?