Пример #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("學生甲抄的試卷:");
            TestPaper studentA = new TestPaperA();
            studentA.TestQuestion1();
            studentA.TestQuestion2();
            studentA.TestQuestion3();

            Console.WriteLine("學生乙抄的試卷:");
            TestPaper studentB = new TestPaperB();
            studentB.TestQuestion1();
            studentB.TestQuestion2();
            studentB.TestQuestion3();

            Console.Read();
        }
Пример #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("學生甲抄的試卷:");
            TestPaper studentA = new TestPaperA();

            studentA.TestQuestion1();
            studentA.TestQuestion2();
            studentA.TestQuestion3();

            Console.WriteLine("學生乙抄的試卷:");
            TestPaper studentB = new TestPaperB();

            studentB.TestQuestion1();
            studentB.TestQuestion2();
            studentB.TestQuestion3();

            Console.Read();
        }