I am new to .NET with Java back ground. Got a question on name space. I believe they are synonymous to Java packages concept.
If I need two classes in the same name space do I have to declare the name space in both the classes?. Both classes are in different files
E.g: If Class1 and Class2 need to be in Namespace myspace. Should it be
If I need two classes in the same name space do I have to declare the name space in both the classes?. Both classes are in different files
E.g: If Class1 and Class2 need to be in Namespace myspace. Should it be
VB.NET:
Namespace myspace
Public Class1
End Namespace
Namespace myspace
Public Class2
End Namespace