예제 #1
0
 static void Main(string[] args)
 {
     Runner R = new MyRunner();
     R.Implement = new MyImplement1();
     R.Operation();
     R.Implement = new MyImplement2();
     R.Operation();
     Console.ReadKey();
 }
예제 #2
0
        static void Main(string[] args)
        {
            Runner R = new MyRunner();

            R.Implement = new MyImplement1();
            R.Operation();
            R.Implement = new MyImplement2();
            R.Operation();
            Console.ReadKey();
        }