Perl Monk, Perl Meditation | |
PerlMonks |
Re^3: Inheritance confusedby derby (Abbot) |
on Dec 07, 2015 at 14:34 UTC ( [id://1149583]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|