in reply to Re: Overriding methods and Inheritance
in thread Overriding methods and Inheritance
So for this to work I need to "morph" AngryDog to a Dog prior to asking SUPER to handle. It might even be reasonable to expect "$self->SUPER" to do this.
I think I might also have selected the wrong mechanism, as stated in other reply to my question. Delegation seems maybe the better solution. I must admit though it sure did look like the right candidate for inheritance.
I wonder what happens in this scenario in C++?
Anyways, thanks for the help:-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Overriding methods and Inheritance
by dsheroh (Monsignor) on Jan 08, 2008 at 17:06 UTC |