in reply to OO Perl Inheritance - Is it possible somehow?
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.
|
|---|