Irrespective of access -specifiers, the sizeof an object is calculated. And it is decided at compile time itself.