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); 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); 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()); Console.ReadLine(); }
static void Main() { Manager m = new Manager("Siddhu", 10000, 100, "Developer"); m.Show(); m.Insert(); m.Update(); m.Delete(); GeneralManager gm = new GeneralManager("Rani", 20000, 101, "Tester", "Perks1"); gm.Show(); gm.Insert(); gm.Update(); gm.Delete(); CEO c = new CEO("Manju", 32000, 102); c.Show(); c.Insert(); c.Update(); c.Delete(); Console.ReadLine(); }
static void Main(string[] args) { GeneralManager g = new GeneralManager("value", "cleark", "onkar", 30000, 1); Console.WriteLine(g.CalcNetSalary()); Employee e = new CEO("vedant", 32000.5m, 2); Console.WriteLine(e.CalcNetSalary()); }
static void Main(string[] args) { GeneralManager o = new GeneralManager(); //o.GetNetSalary(); CEO r = new CEO(); //o.GetNetSalary(); Console.ReadLine(); }
static void Main(string[] args) { CEO c = new CEO("Sachin", 1, 70000); Manager m = new Manager("kodag", 2, 50000, "IT"); GeneralManager gm = new GeneralManager("Ashish", 3, 60000, "Sales", "promotion"); 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() { Manager m = new Manager("Nik", 10, 15000, "Software"); GeneralManager gm = new GeneralManager("Nick", 20, 55000, "logistics", "promoted"); CEO c = new CEO("Nikk", 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(); }
static void Main(string[] args) { Console.WriteLine("Hello World! 1234"); CEO ceo = new CEO("Abhishek", 101, 2500); Console.WriteLine(ceo.CalcNetSalary()); Console.WriteLine(ceo.EMPNAME); Console.WriteLine(ceo.DEPTNO); Manager manager = new Manager("RAM", 105, 1000, "GM"); Console.WriteLine(manager.CalcNetSalary()); Console.WriteLine(manager.EMPNAME); Console.WriteLine(manager.DEPTNO); }
static void Main(string[] args) { Employee m = new Manager(); Employee m1 = new Manager("Sushant", 10, 26000, "Devloper"); Employee m2 = new GeneralManager("Sus", 10, 50000); Employee m3 = new CEO("Tushar", 20, 600000); //Console.WriteLine(m1.EmpNo+" "+ m1.Name +" "+ m1.Basic+" "+m1.Dept); //Console.WriteLine(m2.EmpNo + " " + m2.Name + " " + m2.Basic + " " + m2.Dept); //Console.WriteLine(); //Console.WriteLine(m2.EmpNo + " " + m2.Name + " " + m2.Basic + " " + m2.Dept); //Console.WriteLine(m1.EmpNo + " " + m1.Name + " " + m1.Basic + " " + m1.Dept); m1.show(); m2.show(); m3.show(); Console.ReadLine(); }
static void Main(string[] args) { Manager m = new Manager("Sudarshan", 10, 15000, "Quality"); GeneralManager gm = new GeneralManager("Sudhanshu", 20, 55000, "Design", "promoted"); CEO c = new CEO("Mukesh", 40, 95000); m.Display(); c.Display(); 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) { Employee e = new Manager("Manager", "mgr", 53000, 1); Console.WriteLine("Empid: " + e.EMPNO + ", Name: " + e.NAME + ", Basic salary: " + e.BASIC + ", Dept No: " + e.DEPTNO); Console.ReadLine(); Manager m = new GeneralManager("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.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(); }
static void Main(string[] args) { Console.WriteLine("Manager"); Manager m1 = new Manager("Aarti", 11, 17000000, "CEO"); Console.WriteLine(m1.Name + " " + m1.basic); Console.WriteLine("Net sal : " + m1.CalcNetSalary()); Console.WriteLine("========================================="); GeneralManager g1 = new GeneralManager("Aarti", 12, 16000000, "CEO", "GOLD"); Console.WriteLine(g1.Name + " " + g1.basic); Console.WriteLine("Net sal : " + g1.CalcNetSalary()); Console.WriteLine("========================================="); CEO c1 = new CEO("Aarti", 13, 20000000); Console.WriteLine(c1.Name + " " + c1.basic); Console.WriteLine("Net sal : " + c1.CalcNetSalary()); Console.ReadLine(); }
static void Main() { Console.WriteLine("manager"); Manager m1 = new Manager("Akshay", 7000000, 1, "HR"); Console.WriteLine("name " + m1.NAME); Console.WriteLine("net salary == " + m1.CalNetSalary()); Console.WriteLine("==========================================="); Console.WriteLine("general manager"); GeneralManager gm1 = new GeneralManager("Ridham", 1000000, 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("==========================================="); Console.ReadLine(); }
static void Main() { Console.WriteLine("manager"); Manager m1 = new Manager("Ashish", 6000000, 1, "HR"); Console.WriteLine("name " + m1.NAME); Console.WriteLine("net salary == " + m1.CalNetSalary()); Console.WriteLine("==========================================="); Console.WriteLine("general manager"); GeneralManager gm1 = new GeneralManager("Supriya", 900000, 1, "GM", "abcde"); Console.WriteLine("name " + gm1.NAME); Console.WriteLine("net salary == " + gm1.CalNetSalary()); Console.WriteLine("==========================================="); Console.WriteLine("CEO"); CEO c1 = new CEO("Ashish", 700000, 4); Console.WriteLine("name " + c1.NAME); Console.WriteLine("net salary == " + c1.CalNetSalary()); Console.WriteLine("==========================================="); 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(); }