예제 #1
0
        static void Main(string[] args)
        {
            PermanentEmployee pemp = new PermanentEmployee("Prasad Honrao");
            TemporaryEmployee temp = new TemporaryEmployee("Colin Gray");

            Console.ReadLine();
        }
예제 #2
0
        static void Main(string[] args)
        {
            Employee emp    = new PermanentEmployee();
            int      salary = emp.CalculateSalary(5);

            Console.WriteLine("Permanent employee weekly salary {0}", salary);

            emp    = new TemporaryEmployee();
            salary = emp.CalculateSalary(5);
            Console.WriteLine("Temporary employee weekly salary {0}", salary);

            emp    = new ContactorEmployee();
            salary = emp.CalculateSalary(5);
            Console.WriteLine("Contractor employee weekly salary {0}", salary);

            Console.ReadLine();
        }