Examveda

Which among the given is not a correct way to call the method Issue() defined in the following C# code snippet?
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

Answer: Option B


This Question Belongs to C Sharp Programming >> Miscellaneous In C Sharp

Join The Discussion

Related Questions on Miscellaneous in C Sharp