Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("*** 問題:アクセス修飾子の実験 ***\n");
            IncompleteClass myRef = new CompleteClass();

            myRef.ShowMe();
            Console.ReadKey();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.WriteLine("***Quiz : Experiment with access specifiers***\n");
            IncompleteClass myRef = new CompleteClass();

            myRef.ShowMe();//error -if you use protected instead of public in the above class's ShowMe()

            Console.ReadKey();
        }