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.
In reply to Re: Can't locate object method- Issue
by Loops
in thread Can't locate object method- Issue
by perl_noobie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |