in reply to Re: OO Perl Inheritance - Is it possible somehow?
in thread OO Perl Inheritance - Is it possible somehow?
I'm getting more and more confused about these OO terms :)Kid.pm ------ package Kid; @ISA = (Son); use Son; sub new { } Son.pm ------- package Son; sub new { } sub getSonSex { print("I'm a boy \n"); } test.pl ------- use Kid; use Son; $kid = Kid->new(); # It's OK $kid->getSonSex();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: OO Perl Inheritance - Is it possible somehow?
by kEndE (Novice) on Dec 17, 2008 at 17:08 UTC |