C# Programming - Namespaces - Discussion
Discussion Forum : Namespaces - General Questions (Q.No. 11)
11.
Which of the following statements are correct about a namespace used in C#.NET?
- Classes must belong to a namespace, whereas structures need not.
- Every class, struct, enum, delegate and interlace has to belong to some or the other namespace.
- All elements of the namespace have to belong to one file.
- If not mentioned, a namespace takes the name of the current project.
- The namespace should be imported to be able to use the elements in it.
Discussion:
3 comments Page 1 of 1.
Apurva said:
6 years ago
Can anyone explain the third point?
Jack Chan said:
1 decade ago
Why is 2 correct?
Arun said:
1 decade ago
Why so?
Program runs fine even if we don't include namespace block { }.
Program runs fine even if we don't include namespace block { }.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers