http://qs1969.pair.com?node_id=1149583


in reply to Re^2: Inheritance confused
in thread Inheritance confused

Sure, you could keep the parent just as you have. In your OP, it's not necessary and I haven't had enough coffee this morning to fully evaluate your response but in general keeping a reference like that is pretty much an OO code smell. A class that instantiates objects is normally a Factory but for most Factory classes, that's *all* they do - they do not have other behaviors.

-derby