C# Programming - Namespaces - Discussion
Discussion Forum : Namespaces - General Questions (Q.No. 6)
6.
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?
Discussion:
3 comments Page 1 of 1.
Ankit vs said:
9 years ago
WHAT WILL HAPPEN IN THIS CASE? Please explain.
namespace IndiabixConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
using n1;
Point x = new Point();
x.fun();
using n2;
Point y = new Point();
y.fun();
}
}
}
namespace IndiabixConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
using n1;
Point x = new Point();
x.fun();
using n2;
Point y = new Point();
y.fun();
}
}
}
Roy said:
1 decade ago
What is the difference between option B and option D?
Kedar said:
1 decade ago
Using keyword is used in C# instead of import.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers