static void Main(string[] args) { GeneralManager e1 = new GeneralManager("kajol", 10, 12000.0m, "HR", "hhhh"); Console.WriteLine(e1.EmpNo); Console.WriteLine(e1.Name); Console.WriteLine(e1.DeptNo); Console.WriteLine(e1.Basic); Console.WriteLine(e1.CalcNetSalary()); Console.WriteLine(e1.Designation); Console.WriteLine(e1.Perks); Console.WriteLine("=================="); GeneralManager e2 = new GeneralManager("ram", 20, 13000.0m, "cs", "hhhh"); Console.WriteLine(e2.EmpNo); Console.WriteLine(e2.Name); Console.WriteLine(e2.DeptNo); Console.WriteLine(e2.Basic); Console.WriteLine(e2.CalcNetSalary()); Console.WriteLine(e2.Designation); Console.WriteLine(e2.Perks); //Console.WriteLine(e1.EmpNo); //Console.WriteLine(e2.EmpNo); Console.ReadLine(); }
static void Main(string[] args) { GeneralManager g = new GeneralManager("sammy", 1, 5000, "GM", "none"); Manager m = new Manager("sandy", 2, 4000, "M"); Console.WriteLine("***********Manager************"); Console.WriteLine(m.CalcNetSalary(m.Basic)); Console.WriteLine("***********General Manager************"); Console.WriteLine(g.CalcNetSalary(g.Basic)); Console.ReadLine(); }
static void Main(string[] args) { CEO c = new CEO("Rahul", 30, 95000); Manager m = new Manager("shubham", 10, 45000, "Software"); GeneralManager gm = new GeneralManager("pratik", 20, 25000, "logistics", "promoted"); Console.WriteLine(c.EMPNO + " " + c.NAME + " " + c.DEPTNO + " " + c.BASIC + " " + c.CalcNetSalary()); Console.WriteLine(m.EMPNO + " " + m.NAME + " " + m.DEPTNO + " " + m.BASIC + " " + m.DESGN + " " + m.CalcNetSalary()); Console.WriteLine(gm.EMPNO + " " + gm.NAME + " " + gm.DEPTNO + " " + gm.BASIC + " " + gm.DESGN + " " + gm.PERKS + " " + gm.CalcNetSalary()); Console.ReadLine(); }
static void Main(string[] args) { Manager m = new Manager("Mayank", 10, 15000, "Software"); GeneralManager gm = new GeneralManager("Mohit", 20, 55000, "logistics", "promoted"); CEO c = new CEO("Ashish", 30, 95000); Console.WriteLine(c.EMPNO + " " + c.NAME + " " + c.DEPTNO + " " + c.BASIC + " " + c.CalcNetSalary()); Console.WriteLine(m.EMPNO + " " + m.NAME + " " + m.DEPTNO + " " + m.BASIC + " " + m.DESGN + " " + m.CalcNetSalary()); Console.WriteLine(gm.EMPNO + " " + gm.NAME + " " + gm.DEPTNO + " " + gm.BASIC + " " + gm.DESGN + " " + gm.PERKS + " " + gm.CalcNetSalary()); Console.ReadLine(); }