Esempio n. 1
0
        static void Main(string[] args)
        {
            Manager gm1 = new Manager("manager", 111, 22000, "man");

            Console.WriteLine(gm1.EMPNO + " " + gm1.EMPNAME + " " + gm1.DEPTNO + " " + gm1.Basic + " " + gm1.Designation + " " + gm1.Getnetsalary());

            GeneralManager gm = new GeneralManager("g.manager", 112, 52000, "gman", "ALL");

            Console.WriteLine(gm.EMPNO + " " + gm.EMPNAME + " " + gm.DEPTNO + " " + gm.Designation + " " + gm.Basic + " " + gm.Perks + " " + gm.Getnetsalary());

            CEO gm2 = new CEO("ceo", 111, 122000);

            Console.WriteLine(gm2.EMPNO + " " + gm2.EMPNAME + " " + gm2.DEPTNO + " " + gm2.Basic + " " + gm2.Getnetsalary());

            Console.ReadLine();
        }