C# Programming - Namespaces - Discussion
Discussion Forum : Namespaces - General Questions (Q.No. 14)
14.
Which of the following C#.NET code snippets will correctly print "Hello C#.NET"?
Discussion:
4 comments Page 1 of 1.
Henok said:
7 years ago
Option C: the namespace is importing the Console class, then it imported as " using static System. Console;" rather than "using System. Console; ".
Radhakrishna said:
1 decade ago
Hello What's wrong with option C?
Veyronash said:
1 decade ago
In Option A, System is a namespace and it has to be used with a using keyword and not import.
Sachin said:
1 decade ago
Whats wrong with option [A] ?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers