Class Size and memory

How is a class not occupying memory, yet it still shows the size of the class?

A class itself doesn’t occupy memory; its size reflecs the memory needed to store its members. Memory is allocated when instances of the class are created.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.