in reply to Re: Multiple Prototypes for Object Constructor
in thread Multiple Prototypes for Object Constructor
Or if you are lazy, just grab Class::Multimethods. It presents a solution that is more open-closed than using an if-then-elsif-else. For example: you can add multi methods to the subclass without touching the superclass.
|
---|