Private class with Public method?
问题 Here is a piece of code: private class myClass { public static void Main() { } } 'or' private class myClass { public void method() { } } I know, first one will not work. And second one will. But why first is not working? Is there any specific reason for it? Actually looking for a solution in this perspective, thats why made it bold. Sorry 回答1: It would be meaningful in this scenario; you have a public class SomeClass , inside which you want to encapsulate some functionality that is only