public class Person
{
public virtual void Salary()
{
}
}
public class Employee : Person
{
public override void Salary()
{
base.Salary();
}
}
public class Manager : Employee
{
public override void Salary()
{
base.Salary();
}
}
If you don't want one class to call its base class method it is up to you to implement the logic.