| Next | February 2001 | Slide #29 |
OO Systems usually let us specify that Employee inherits from Person
This means that you can call a Person method on a Employee object
$b = Employee->new(...);
$b->name('Polonius');
Here there is no such method as Employee::name
Instead of raising an error, Perl looks for Person::name and calls that instead
| Next | ![]() |
Copyright © 2001 M-J. Dominus |