in reply to perl inheritance
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl inheritance
by Anonymous Monk on Mar 23, 2012 at 21:01 UTC | |
by chromatic (Archbishop) on Mar 23, 2012 at 22:02 UTC | |
by Anonymous Monk on Mar 26, 2012 at 14:07 UTC | |
by chromatic (Archbishop) on Mar 27, 2012 at 16:19 UTC | |
by Anonymous Monk on Mar 29, 2012 at 14:43 UTC | |
by Anonymous Monk on Mar 29, 2012 at 15:39 UTC | |
|