Tuesday, 13 August 2013

C# OOP of inheritance and polymorphism

C# OOP of inheritance and polymorphism

I get a warning in my program that is 'Employee.Salaried.CalculatePay()'
hides inherited member 'Employee.Employee.CalculatePay()'. Use the new
keyword if hiding was intended. for this
public double CalculatePay()
{
return ((AnnualSalary * (ManagementLevel * BONUS_PERCENT)) +
AnnualSalary) / 52;
}
Anyone have suggestions on how to get rid of there warning?

No comments:

Post a Comment