예제 #1
0
        static void Main(string[] args)
        {
            ThirdClass thirdClass = new ThirdClass();

            thirdClass.Print();
            thirdClass.SecondPrint();
            Customer C1 = new Customer();

            C1.Print();
            ((ISecondCustomer)C1).Print();

            Employee[] employees = new Employee[4];
            employees[0] = new Employee();
            employees[1] = new FullTimeEmployee();
            employees[2] = new PartTimeEmployee();
            employees[3] = new TemporaryEmployee();

            foreach (var emp in employees)
            {
                emp.PrintFullName();
            }

            Circle myCircle = new Circle(4);

            float AreaAnswer = myCircle.CalculateCircleArea();

            Console.WriteLine(AreaAnswer);


            //Customer myCustomer = new Customer("Chijioke", "Nwagwu");
            //Customer noParameterCustomer = new Customer();


            //myCustomer.PrintFullName();
            //noParameterCustomer.PrintFullName();
        }
예제 #2
0
 static void Main(string[] args)
 {
     BaseClass bc = new ThirdClass(); bc.Print();
 }