And how it's going to work anyway? Your $foo is of class FooBar::Foo, which has FooBar in its inheritance tree (that is, assuming you would actually have package statements, which you don't). But then you call the method age, which is defined in FooBar::Bar, which is not inherited by FooBar::Foo.
In reply to Re^2: Extending objects
by JavaFan
in thread Extending objects
by punkish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |