C#.NET — prerequisites for using a class (Point) present in namespace Graph stored in a library.
C# Programming
Namespaces
Difficulty: Medium
Choose an option
-
AUse fully qualified name of the Point class.
-
BUse using statement before using the Point class.
-
CAdd Reference of the library before using the Point class.
-
DUse using statement before using the Point class.
-
ECopy the library into the current project directory before using the Point class.
Answer
Correct Answer: Add Reference of the library before using the Point class.
Explanation
Fact:Before using a class from an external library, a project must reference that library. Only then can fully qualified names or using directives resolve correctly.
Final Answer:Add Reference of the library before using the Point class.