C#C
C#3y ago
CrazieNewb

❔ Classes in a namespace

I understand that a class has to be public in a namespace to work. However i understand that default scope is set to private? so in this code is Program public because it is in a namespace?
namespace HelloWorld {
    class Program {
        static void Main(string[] args) {
            Console.WriteLine("Hello, World!");
        }
    }
}
Was this page helpful?