![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: Class::Methodmaker inheritanceby Fletch (Bishop) |
on Mar 08, 2004 at 19:42 UTC ( #334906=note: print w/replies, xml ) | Need Help?? |
The methods C::MM makes are no different than those you make yourself. If you're just extending with new methods there shouldn't be any problems so long as @ISA is correct. If you need to override the behavior of the parent class, you might want to use a has-a relationship instead and use C::MM's object slot type to forward on unchanged methods and then redefine whatever in the child class.
In Section
Seekers of Perl Wisdom
|
|