If I derive from this class and I call one of these methods, I'm interested in getting back the derived class (not the base).
The best way to do this is to fix the superclass to return new objects of the correct class. How does it return new objects?
Improve your skills with Modern Perl: the free book.
In reply to Re: perl inheritance
by chromatic
in thread perl inheritance
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |