J
Janaka
When using object inheritance is it possible to call a method of the base
class more than 1 object below the inherited class?
For example, assume that the Labrador class inherits all the way down to
animal - Labrador -> Dog -> Animal
Animal has a virtual method called Walk() which is overridden in Dog
Now if I use the following code this will call Dog's implementation.:
public override void Walk()
{
base.Walk();
}
Is it possible to call Animal's implementation of Walk() ?
class more than 1 object below the inherited class?
For example, assume that the Labrador class inherits all the way down to
animal - Labrador -> Dog -> Animal
Animal has a virtual method called Walk() which is overridden in Dog
Now if I use the following code this will call Dog's implementation.:
public override void Walk()
{
base.Walk();
}
Is it possible to call Animal's implementation of Walk() ?