Google Interview Question

How do you add information to a class, without increasing the memory usage of an object?

Interview Answer

Anonymous

Dec 11, 2015

The first thing that comes to mind is "static" variable or member function, which would take up memory usage for a class, but not an object.