public decimal GetNetSalary() { Salary sal = new Salary(); sal.Basic = Basic; return(sal.GetNetSalary2()); }
public void DisplayData() { Salary sal = new Salary(); sal.Basic = Basic; Console.WriteLine("Employee Id : " + EmpNo); Console.WriteLine("Employee Name : " + Name); Console.WriteLine("Employee department : " + DeptNo); Console.WriteLine("Employee Salary : " + sal.GetNetSalary2()); Console.WriteLine("==========================================="); }