| Next | February 2001 | Slide #31 |
package Employee;
use base 'Person';
(Only in 5.004_04 and later)
This is actually synonymous with:
package Employee;
use Person;
@ISA = ('Person');
If a method lookup fails, Perl searches in the class named in @ISA
@ISA because "a Employee is a Person."
| Next | ![]() |
Copyright © 2001 M-J. Dominus |