Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi all, I am relativly new to perl and need a shove in the right direction concerning class methods. How do you denote whether a method in a subclass should overwrite or augment the same method in its parent class?
EX: Class B & C are inherited from class A. Class A has a method called "sub 123 {}". In Class B I want sub 123 to do something completely differnt. However, in Class C I want sub 123 to do what it does in Class A ples a little more.
I assume there is a perldoc somewhere that explains this but I have not found it yet. Could I get some directions please?
thanks,
ch
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Class Methods
by borisz (Canon) on Jul 27, 2004 at 22:20 UTC | |
|
Re: Class Methods
by friedo (Prior) on Jul 27, 2004 at 23:55 UTC | |
|
Re: Class Methods
by hv (Prior) on Jul 28, 2004 at 10:25 UTC | |
|
Re: Class Methods
by Anonymous Monk on Jul 28, 2004 at 15:00 UTC |