C#.NET — which are the correct ways to call method Issue() from Book and Journal classes in College.Lib namespace?

Difficulty: Medium

Correct Answer: using College.Lib; Book b = new Book(); b.Issue();

Explanation:


Fact:
To avoid writing fully qualified names repeatedly, we can use using College.Lib;. This allows direct instantiation of Book and Journal.



Final Answer:
using College.Lib; Book b = new Book(); b.Issue();

Discussion & Comments

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