static void Main(string[] args) { //for 1st assignment //employee o1 = new employee("arun"); //employee o2 = new employee(); //employee o3 = new employee(); //Console.WriteLine(o1.EMPNO+" "+o1.NAME+" "+o1.DEPTNO); //Console.WriteLine(o2.EMPNO); //Console.WriteLine(o3.EMPNO); //o1.GetNetSalary(10000); //for 2nd assignment employee s1 = new Manager("ria"); Manager s2 = new Manager("pia", 13000, 2); GeneralManager s3 = new GeneralManager("nia", 12000, 4, "delhi", "car"); CEO s4 = new CEO("mia", 14000, 3); s1.CallNetSalary(); s2.CallNetSalary(); s3.CallNetSalary(); s4.CallNetSalary(); s1.display(); s2.display(); s3.display(); s4.display(); Console.ReadLine(); }
static void Main() { CEO a1 = new CEO("parag", 5, 12.65M, "peon", "holiday"); CEO a2 = new CEO("akash", 4, 36.34M, "GM", "Bonus"); CEO a3 = new CEO("Harish", 9, 26.43M, "Director", "Hike"); GeneralManager a5 = new GeneralManager("Omkar", 3, 42.25M, "Instructor", "Leave"); a1.CalNetSalary(); a5.CalNetSalary(); Console.WriteLine(a1.EmpNo); Console.WriteLine(a2.EmpNo); Console.WriteLine(a3.EmpNo); Console.WriteLine(a1.Name); Console.WriteLine(a2.Designation); }
static void Main(string[] args) { Manager o = new Manager("Ashwini", 10000, 2, "QualityManager"); Console.WriteLine("Name:" + o.Name + " Salary:" + o.CalNetSalary()); GeneralManager o1 = new GeneralManager("Ankita", 20000, 3, "PL", "health"); Console.WriteLine("Name:" + o1.Name + " Salary:" + o1.CalNetSalary()); CEO o2 = new CEO("Manvi", 25000, 4); Console.WriteLine("Name:" + o2.Name + " Salary:" + o2.CalNetSalary()); Console.ReadLine(); }