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?
  1. Classes must belong to a namespace, whereas structures need not.
  2. Every class, struct, enum, delegate and interlace has to belong to some or the other namespace.
  3. All elements of the namespace have to belong to one file.
  4. If not mentioned, a namespace takes the name of the current project.
  5. The namespace should be imported to be able to use the elements in it.
1, 3
2, 4, 5
3, 5
4 only
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
3 comments Page 1 of 1.

Arun said:   1 decade ago
Why so?

Program runs fine even if we don't include namespace block { }.

Apurva said:   6 years ago
Can anyone explain the third point?

Jack Chan said:   1 decade ago
Why is 2 correct?

Post your comments here:

Your comments will be displayed after verification.