adplus-dvertising
frame-decoration

Question

Which among the given is not a correct way to call the method Issue() defined in the code snippet given below?
class Book
{
    public void issue()
    {
      /* code */
    }
}
class Journel
{
     public void issue()
     {
         /* code */
     }
}

a.

College.Lib.Book b = new College.Lib.Book();
b.issue();

b.

Book b = new Book();
b.issue();

c.

using College.Lib;
Book b = new Book();
b.issue();

d.

All of the mentioned

Posted under C# programming

Answer: (b).Book b = new Book();
b.issue();

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which among the given is not a correct way to call the method Issue() defined in the code snippet given below?