예제 #1
0
        static void Main(string[] args)
        {
            InternalTest internalTest = new InternalTest();

            // Accessing internal variable
            Console.WriteLine("Hello " + internalTest.name);
            // Accessing internal function
            internalTest.Msg("Rocksson Duck");
        }
예제 #2
0
        static void Main(string[] args)
        {
            InternalTest internalTest = new InternalTest();

            // Accessing protected internal variable
            Console.WriteLine("Hello " + internalTest.name);
            // Accessing protected internal function
            internalTest.Msg("Petersson Don");
        }