XP is just a number | |
PerlMonks |
Re: Can a class constructor create an instance of a derived class and return it? Or, can objects transmute into other objects?by alexander_lunev (Pilgrim) |
on Sep 28, 2017 at 21:37 UTC ( [id://1200320]=note: print w/replies, xml ) | Need Help?? |
If i understand you correctly, it's the "Factory method" pattern case. I'm using it for storage abstraction.
In Section
Seekers of Perl Wisdom
|
|