C#.NET — prerequisites for using a class (Point) present in namespace Graph stored in a library.

C# Programming Namespaces Difficulty: Medium
Choose an option
  • A
    Use fully qualified name of the Point class.
  • B
    Use using statement before using the Point class.
  • C
    Add Reference of the library before using the Point class.
  • D
    Use using statement before using the Point class.
  • E
    Copy 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.

Discussion & Comments
No comments yet. Be the first to comment!
Join Discussion