public interface IEmployee { string Name { get; set; } decimal CalculateSalary(); } public class Emp1 : IEmployee { public string Name { get; set; } //some other properties //..... public decimal CalculateSalary(){...} } public class Emp2 : IEmployee { public string Name { get; set; } //some other properties //..... public decimal CalculateSalary(){...} }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)