Home » C# Programming » Namespaces

If a class called Point is present in namespace n1 as well as in namespace n2, then which of the following is the correct way to use the Point class?

Correct Answer: using n1; using n2; namespace CuriousTabConsoleApplication { class MyProgram { static void Main(string[] args) { n1.Point x = new n1.Point(); x.fun(); n2.Point y = new n2.Point(); y.fun(); } } }

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion