opensourcer has asked for the wisdom of the Perl Monks concerning the following question:
package AGENT; sub new { .... } sub Callme { .... } 1;
package TOOLS; use AGENT; sub new : AGENT::new # should initialize the AGENT::new { .... } sub Callme { .... } 1;
Does perl has SUPER to call the base class if i ahave to packages in one perl module sorry for type errors.use TOOLS; my $tools = new TOOLS; $tools->SUPER::Callme(); # it should call the AGENT::Callme $tools->Callme();
2006-11-11 Retitled by g0n, as per Monastery guidelines
Original title: 'Advanced OOP'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to do basic inheritance in Perl OO?
by Joost (Canon) on Nov 06, 2006 at 18:58 UTC | |
|
Re: How to do basic inheritance in Perl OO?
by samtregar (Abbot) on Nov 06, 2006 at 18:37 UTC | |
|
Re: How to do basic inheritance in Perl OO?
by Sidhekin (Priest) on Nov 06, 2006 at 18:22 UTC |