Here is the code which prints size of different classes
#include using namespace std; class EmptyClass { }; class AbstractClass { publi
NotAbstrClass is like an empty class when we talk about bit sizes since it has no data. MixClass has the virtual function pointer (4 bytes on a 32-bit machine) and an int (also 4 bytes).