The answer is: No. No matter of how many methods a class has, the size is only determined by the data members.
With one notable exception: If you have only one method that is declared as 'virtual', the compiler will add a pointer to a Virtual Method Table, which will increase the class' size by 4 bytes (32bit) or 8 bytes (64 bits).
0
Nusrat NuriyevAuthor Commented:
how can I see the content of virtual method table? is there any tool for developers?
0
Question has a verified solution.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
With one notable exception: If you have only one method that is declared as 'virtual', the compiler will add a pointer to a Virtual Method Table, which will increase the class' size by 4 bytes (32bit) or 8 bytes (64 bits).