in reply to Inheritance - parent of parent (solved)
So that if I want to access a method in CLASS_A I want to be able to do.WHY?
my $instanceC = CLASS_C->new(); $instanceC->method_from_class_A();
Really, you don't want to do this except, maybe, as a workaround, and then you can do $instanceC->CLASS_A::method_name()
Anyway your code does not show the symptoms you're describing:
In other words, instantiating the object does not lead to an infinite loop,Can't locate object method "method_from_class_A" via package "CLASS_C" + at test.pl line 5.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Inheritance - parent of parent
by ikegami (Patriarch) on Nov 23, 2007 at 02:40 UTC | |
by Joost (Canon) on Nov 23, 2007 at 02:55 UTC | |
by Crackers2 (Parson) on Nov 23, 2007 at 03:12 UTC | |
by Joost (Canon) on Nov 23, 2007 at 03:17 UTC |