Well, the only way I can think about this is that if your problem with the size of the object in your instance variable keeps either you can initialize the parameter to zero, or you can serialize the object by specifying the parameters of your instance to be temporary and go with serialization, deserialize it.
It was just a thought that could not come up with anything closer.
if you don't need exact inheritance, you go around this with creating a custom factory and extract the member variable using reflection, which will work too.
In any case, this is my opinion.
source share