CrazieNewb
CrazieNewb
CC#
Created by CrazieNewb on 10/21/2023 in #help
❔ 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!");
}
}
}
namespace HelloWorld {
class Program {
static void Main(string[] args) {
Console.WriteLine("Hello, World!");
}
}
}
35 replies