Exemple #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("*** コンストラクタの呼び出す順序をテスト ***");
            GrandChild grandChild = new GrandChild();

            Console.ReadKey();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.Black;
            Console.BackgroundColor = ConsoleColor.White;
            Console.Clear();
            Console.WriteLine("***Testing the call sequence of constructors***\n\n");
            GrandChild grandChild = new GrandChild();

            Console.ReadKey();
        }