0

what is the size of an empty class ?

6th Aug 2016, 4:18 AM
NITISH KUMAR
NITISH KUMAR - avatar
2 Answers
+ 2
class doesn't have any size until its object is created class is just a blue print
6th Aug 2016, 8:47 AM
Zeeshan
+ 2
... and to add to Zeeshans answer: if you instantiate an empty class, the object created will take at least one byte as per C++ standard.
7th Aug 2016, 11:40 PM
Stefan
Stefan - avatar