class baseClass
{
public virtual void method()
{
}
}
class class1 : baseClass
{
public override void method()
{
}
}
class class2: class1
{
public override void method()
{
}
}
Is this the correct way to do this? When I declare all the subsequent methods as virtual I get a warning because it hides the inherited method of the parent class, however that method still gives me the functionality I want.

New Topic/Question
Reply



MultiQuote




|