Ejemplo n.º 1
0
        static void Main()
        {
            Test2 t = new Test2();

            t.internalMethod();
            t.protectedInternalMethod();
            t.publicMethod();
        }
Ejemplo n.º 2
0
        static void Main()
        {
            a = 20;
            Test2 t = new Test2();

            t.internalMethod();
            t.privateProtectedMethod();
            t.protectedInternalMethod();
            t.protectedMethod();
            t.publicMethod();
        }