For $kid->son to do anything, there has to be a son method defined in the Kid package. If you want the $kid object to know about the $son object, you'll have to tell it somewhere, but then the question is what to do when there's more than one Kid::Son created.
In reply to Re: OO Perl Inheritance - Is it possible somehow?
by kyle
in thread OO Perl Inheritance - Is it possible somehow?
by kEndE
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |