namespace College
{
    namespace Lib
        {
            class Book
        {
            public void Issue()
            {
                // Implementation code
            }
        }
            class Journal
        {
            public void Issue()
            {
                // Implementation code
            }
        }
    }
}
Now to use Issue() method of class Book in a different namespace, the following two approaches work.
- College.Lib.Book b = new College.Lib.Book(); b.Issue();
- using College.Lib; Book b = new Book(); b.Issue();
And the following two approaches don't work.
i. using College; Lib.Book b = new Lib.Book(); b.Issue();
ii. using College.Lib.Book; Book b = new Book(); b.Issue();
Why don't the last two codes work?
 
     
    