in reply to Can't locate object method- Issue
The Employee class is a subclass of Person which does not export a sayHi() method. If you make Employee a subclass of Person::Adult, the sayHi() method will be found. Alternatively you could just add a sayHi() method to Person.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't locate object method- Issue
by perl_noobie (Initiate) on Aug 02, 2013 at 07:06 UTC | |
by Corion (Patriarch) on Aug 02, 2013 at 07:18 UTC | |
by choroba (Cardinal) on Aug 02, 2013 at 07:17 UTC | |
by Loops (Curate) on Aug 02, 2013 at 07:23 UTC |