static void Main(string[] args) { Manager e = new Manager("Manager", "mgr", 53000, 1); Console.WriteLine("Empid: " + e.EMPNO + ", Designation: " + e.DESIGNATION + ", Name: " + e.NAME + ", Basic salary: " + e.BASIC + ", Dept No: " + e.DEPTNO); e.Insert(); e.Upadte(); e.Delete(); Console.ReadLine(); GeneralManager m = new GeneralManager("", "General", "GM", 25000); Console.WriteLine("Empid: " + m.EMPNO + ",Perks: " + m.Perks + ", Designation: " + m.DESIGNATION + ", Name: " + m.NAME + ", Basic salary: " + m.BASIC); m.Insert(); m.Upadte(); m.Delete(); Console.ReadLine(); CEO ceo = new CEO("", 200000); Console.WriteLine("Empid: " + ceo.EMPNO + ", Name: " + ceo.NAME + ", Basic salary: " + ceo.BASIC + ", Net salary: " + ceo.CalcNetSalary()); ceo.Insert(); ceo.Upadte(); ceo.Delete(); Console.ReadLine(); CEO ceo1 = new CEO("CEO", 1000); Console.WriteLine("Empid: " + ceo1.EMPNO + ", Name: " + ceo1.NAME + ", Basic salary: " + ceo1.BASIC + ", Net salary: " + ceo1.CalcNetSalary()); ceo1.Insert(); ceo1.Upadte(); ceo1.Delete(); Console.ReadLine(); }
static void Main(string[] args) { // Manager m = new Manager("ceo","anjali",2,1500); // Manager m1 = new Manager("ceo", "anj", 3, 2500); Console.WriteLine("======"); GenralManger m1 = new GenralManger("sir", "ceo", "anjali", 2, 2500); Console.ReadLine(); Employee e = new Manager("Manager", "mgr", 1, 53000); Console.WriteLine("Empid: " + e.EMPNO + ", Name: " + e.NAME + ", Basic salary: " + e.BASIC + ", Dept No: " + e.DEPTNO); Console.ReadLine(); /* * Manager m = new GenralManger("GM", "",25000); * Console.WriteLine("Empid: " + m.EMPNO + ", Name: " + m.NAME + ", Basic salary: " + m.BASIC); * Console.ReadLine(); */ Employee ceo = new CEO("", 200000); Console.WriteLine("Empid: " + ceo.EMPNO + ", Name: " + ceo.NAME + ", Basic salary: " + ceo.BASIC + ", Net salary: " + ceo.CalNetSalary()); Console.ReadLine(); Employee ceo1 = new CEO("CEO", 1000); Console.WriteLine("Empid: " + ceo1.EMPNO + ", Name: " + ceo1.NAME + ", Basic salary: " + ceo1.BASIC + ", Net salary: " + ceo1.CalNetSalary()); Console.ReadLine(); }
static void Main(string[] args) { Employee e = new Manager("Manager", "mngr", 40000, 1); Console.WriteLine("Empid: " + e.EMPNO + ", Name: " + e.NAME + ", Basic salary: " + e.BASIC + ", Dept No: " + e.DEPTNO); Console.ReadLine(); Manager m = new GeneralManager("Gmngr", "", "", 234, 12); Console.WriteLine("Empid: " + m.EMPNO + ", Name: " + m.NAME + ", Basic salary: " + m.BASIC); Console.ReadLine(); Employee ceo = new CEO("", 200000); Console.WriteLine("Empid: " + ceo.EMPNO + ", Name: " + ceo.NAME + ", Basic salary: " + ceo.BASIC + ", Net salary: " + ceo.CalcNetSalary()); Console.ReadLine(); Employee ceo1 = new CEO("CEO", 1000); Console.WriteLine("Empid: " + ceo1.EMPNO + ", Name: " + ceo1.NAME + ", Basic salary: " + ceo1.BASIC + ", Net salary: " + ceo1.CalcNetSalary()); Console.ReadLine(); }