calculated as the total number of bytes in each data item.
Note: number of Java methods or C++ functions does not measure the object size.
Although each
method can be measured in the number of bytes of the actual code,
there is not necessarily a physical copy of one method for each object.
Rather, each object points to the same physical code.