static void Main(string[] args) { GeneralManager g = new GeneralManager("Sumedh", 10, 40000, "m"); //g.Name = "Sumedh"; //g.DeptNo = 10; //g.Basic = 30000; //Console.WriteLine(g.Name); //Console.WriteLine(g.DeptNo); //Console.WriteLine(g.Basic); //Manager m = new Manager("Sumedh", 10, 30000, "m"); //m.Name = "Sumedh"; //m.DeptNo = 10; //m.Basic = 30000; //Console.WriteLine(m.Name); //Console.WriteLine(m.DeptNo); //Console.WriteLine(m.Basic); CEO c = new CEO("Sumedh", 10, 55000); //c.Name = "Sumedh"; //c.DeptNo = 10; //c.Basic = 30000; //Console.WriteLine(c.Name); //Console.WriteLine(c.DeptNo); //Console.WriteLine(c.Basic); Console.ReadLine(); }
static void Main(string[] args) { GeneralManager o = new GeneralManager(); //o.GetNetSalary(); CEO r = new CEO(); //o.GetNetSalary(); Console.ReadLine(); }
static void Main(string[] args) { GeneralManager g = new GeneralManager("akshay", 10, 40000, "m"); CEO c = new CEO("akshay", 10, 55000); Console.ReadLine(); }
static void Main() { Console.WriteLine("manager"); Manager m1 = new Manager("akshay", 700000, 1, "HR"); Console.WriteLine("name " + m1.NAME); Console.WriteLine("net salary == " + m1.CalNetSalary()); Console.WriteLine("==========================================="); Console.WriteLine("general manager"); GeneralManager gm1 = new GeneralManager("mahesh", 500000, 1, "GM", "abccc"); Console.WriteLine("name " + gm1.NAME); Console.WriteLine("net salary == " + gm1.CalNetSalary()); Console.WriteLine("==========================================="); Console.WriteLine("CEO"); CEO c1 = new CEO("akash", 800000, 4); Console.WriteLine("name " + c1.NAME); Console.WriteLine("net salary == " + c1.CalNetSalary()); Console.WriteLine("============================================="); IDbFunctions i1 = new Manager(); i1.Delete(); i1.Update(); i1.Insert(); Console.WriteLine("==========================================="); IDbFunctions i2 = new GeneralManager(); i2.Insert(); i2.Update(); i2.Delete(); Console.WriteLine("=========================================="); IDbFunctions i3 = new CEO(); i3.Delete(); i3.Update(); i3.Insert(); Console.WriteLine("=========================================="); Console.ReadLine(); }
static void Main(string[] args) { Manager mg = new Manager("NoName", 100000, 15, "Manager"); Console.WriteLine("EmpNo" + " " + "Ename" + " " + "Dept" + " " + "Designation" + " " + "Basic" + " " + "NetSalary"); Console.WriteLine(mg.Empno + " | " + mg.Ename + " | " + mg.Dept + " | " + mg.Designations + " | " + mg.Basic + " | " + mg.CalcNetSalary(100000)); Console.WriteLine("=========================================="); GeneralManager gm = new GeneralManager("NoName"); Console.WriteLine("EmpNo" + " " + "Ename" + " " + "Dept" + " " + "Designation" + " " + "Basic" + " " + "Perk" + " " + "NetSalary"); Console.WriteLine(gm.Empno + " | " + gm.Ename + " | " + gm.Dept + " | " + gm.Designations + " | " + gm.Basic + " | " + gm.Perk + " | " + gm.CalcNetSalary(120000)); Console.WriteLine("=========================================="); CEO c = new CEO("NoName"); Console.WriteLine("EmpNo" + " " + "Ename" + " " + "Dept" + " " + "Basic" + " " + "NetSalary"); Console.WriteLine(c.Empno + " | " + c.Ename + " | " + c.Dept + " | " + c.Basic + " | " + c.CalcNetSalary(150000)); Console.WriteLine("=========================================="); }
static void Main(string[] args) { Console.WriteLine("Manager"); Manager mg = new Manager("Hello", "Amol", 11, 17000000); Console.WriteLine(mg.Name + " " + mg.BasicSal); Console.WriteLine("Net sal : " + mg.calcNetSalary()); Console.WriteLine("----------------------------------------"); Console.WriteLine("General Manager"); GeneralManager gmg = new GeneralManager("Hello", "Hello", "Amol", 12, 16000000); Console.WriteLine(gmg.Name + " " + gmg.BasicSal); Console.WriteLine("Net sal : " + gmg.calcNetSalary()); Console.WriteLine("----------------------------------------"); Console.WriteLine("CEO"); CEO c = new CEO("Amol", 13, 20000000); Console.WriteLine(c.Name + " " + c.BasicSal); Console.WriteLine("Net sal : " + c.calcNetSalary()); Console.WriteLine("----------------------------------------"); IDbFunctions i1 = new Manager(); i1.Delete(); i1.Update(); Console.WriteLine("----------------------------------------"); IDbFunctions i2 = new GeneralManager(); i2.Insert(); Console.WriteLine("----------------------------------------"); IDbFunctions i3 = new CEO(); i3.Delete(); i3.Update(); Console.ReadLine(); }
static void Main() { Console.WriteLine("Details"); Console.WriteLine("Manager"); Manager m = new Manager("UmeshM", 2, 50000, "Manager"); Console.WriteLine("Employee ID : " + " " + m.EMPNO); Console.WriteLine("Name : " + " " + m.NAME); Console.WriteLine("Dept no : " + " " + m.DEPTNO); Console.WriteLine("Net salary : " + " " + m.CalcNetSalary()); Console.WriteLine("Designation : " + " " + m.DESIGNATION); m.Insert(); m.Upadte(); m.Delete(); Console.WriteLine(" "); Console.WriteLine("General Manager"); GeneralManager g = new GeneralManager("UmeshGM", 3, 60000, "General Manager", "perk1"); Console.WriteLine("Employee ID : " + " " + g.EMPNO); Console.WriteLine("Name : " + " " + g.NAME); Console.WriteLine("Dept no : " + " " + g.DEPTNO); Console.WriteLine("Net Salary : " + " " + g.CalcNetSalary()); Console.WriteLine("Designation : " + " " + g.DESIGNATION); g.Insert(); g.Upadte(); g.Delete(); Console.WriteLine(" "); Console.WriteLine("CEO"); CEO c = new CEO("Umesh", 4, 70000); Console.WriteLine("Employee ID : " + " " + c.EMPNO); Console.WriteLine("Name : " + " " + c.NAME); Console.WriteLine("Dept no : " + " " + c.DEPTNO); Console.WriteLine("Net salary : " + " " + c.CalcNetSalary()); c.Insert(); c.Upadte(); c.Delete(); Console.ReadLine(); }
static void Main(string[] args) { Console.WriteLine("in main"); Manager obj1 = new GeneralManager("Ram", 10, 50000, "Software developer", "Vacation & Paid Time Off"); Console.WriteLine(obj1.Basic); Console.WriteLine(obj1.Name); Console.WriteLine(obj1.Deptno); Console.WriteLine(obj1.Empno); Console.WriteLine(obj1.Designation); Console.WriteLine("================="); CEO obj = new CEO("Raam", 20, 150000);// Console.WriteLine(obj.CalcNetSalary()); Console.WriteLine(obj.Name); Console.WriteLine(obj.Deptno); Console.WriteLine(obj.Empno); Console.WriteLine("================="); Console.ReadLine(); }