Пример #1
0
        static void Main(string[] args)
        {
            PublicClass pubClass = new PublicClass();

            pubClass.PublicMethod(); //Inaccessible method as it is a private method
        }
Пример #2
0
        static void Main(string[] args)
        {
            PublicClass pubClass = new PublicClass();

            pubClass.PublicMethod(); //Accessing public method
        }