Exemplo n.º 1
0
        static void Main()
        {
            FullTimeEmployee ful = new FullTimeEmployee("Duke", 25, "Male", 1001, 500, 10);

            Console.WriteLine("------------Employee Details Display-------");
//            ful.DisplayEmployee();
            Console.WriteLine("------------Salary Calculated-------");
            ful.CalculateSalary();
            GC.Collect();
            Console.ReadLine();
        }
        static void Main()
        {
            //Employee employee = new Employee("SAI", 25, "Male", 1001,500);

            //employee.DisplayEmployee();

            FullTimeEmployee fullTimeEmployee = new FullTimeEmployee("SAI", 25, "Male", 1001, 500, 10);

            fullTimeEmployee.DisplayEmployee();
            fullTimeEmployee.CalculateSalary();
            GC.Collect();
            Console.Read();
        }