G
G. Stewart
Given the following scenario:
class Base1
{
protected virtual void Method1()
{
}
}
class Derived1 : Base1
{
protected override void Method1()
{
// do stuff
base.Method1();
}
}
class Derived2 : Derived1
{
protected override void Method1()
{
base.Method1() // this calls Method1 of Base1
// how to call Method1 of Derived1??
}
}
How would I call the overriden method of the intermediate derived
class (i.e. Method1 or Derived1) from the secondarily derived class,
Derived2?
Thanks.
class Base1
{
protected virtual void Method1()
{
}
}
class Derived1 : Base1
{
protected override void Method1()
{
// do stuff
base.Method1();
}
}
class Derived2 : Derived1
{
protected override void Method1()
{
base.Method1() // this calls Method1 of Base1
// how to call Method1 of Derived1??
}
}
How would I call the overriden method of the intermediate derived
class (i.e. Method1 or Derived1) from the secondarily derived class,
Derived2?
Thanks.