what would be the size of the obj of a class which is having only void member functions , Why is the main part of question?
Printable View
what would be the size of the obj of a class which is having only void member functions , Why is the main part of question?
Please refer http://www.research.att.com/~bs/bs_f...l#sizeof-empty
Regards,
Paresh.
Note:
If the empty class contains virtual functions, then the size is likely to be the same as the size of a pointer.