public static void Main() { Console.WriteLine("============Manager================="); Manager o1 = new Manager("Manager", "Amit", 300, 11); o1.DisplayData(); o1.Update(); o1.Delete(); o1.Insert(); Console.ReadLine(); Console.WriteLine("============GenerelManager================="); GenerelManager o2 = new GenerelManager("Derimilk", "general manager", "Mohit", 2000, 12); o2.DisplayData(); o2.Update(); o2.Delete(); o2.Insert(); Console.ReadLine(); Console.WriteLine("============CEO================="); Employee o3 = new CEO("Rahul", 55000, 101); o3.DisplayData(); o3.demo(); o3.Update(); o3.Delete(); o3.Insert(); Console.ReadLine(); }
static void Main(string[] args) { Manager o = new Manager("Ashwini", 10000, 2, "QualityManager"); Console.WriteLine("Name:" + o.Name + " Salary:" + o.CalNetSalary()); o.Insert(); o.Update(); o.Delete(); Console.WriteLine(); GeneralManager o1 = new GeneralManager("Ankita", 20000, 3, "PL", "health"); Console.WriteLine("Name:" + o1.Name + " Salary:" + o1.CalNetSalary()); o1.Insert(); o1.Update(); o1.Delete(); Console.WriteLine(); CEO o2 = new CEO("Manvi", 25000, 4); Console.WriteLine("Name:" + o2.Name + " Salary:" + o2.CalNetSalary()); o2.Insert(); o2.Update(); o2.Delete(); Console.ReadLine(); }