I'm a bit of a perl OOP newbie, so please excuse me for my lack of experience/know-how.. I'm interested in inheriting from a class where many of the methods return a new copy of itself instead of operating on its own instance. 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). Is there a way to accomplish this without overriding all the base class methods? (especially since I might want to create many of these types of objects that derive from this base class).
Any help/guidance/examples would be very much appreciated!!!In reply to perl inheritance by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |