

Namespaces - Programming
Q1: Which of the following statments are the correct way to call the method Issue() defined in the code snippet given below?
namespace College
{
namespace Lib
{
class Book
{
public void Issue()
{
// Implementation code
}
}
class Journal
{
public void Issue()
{
// Implementation code
}
}
}
}
A 1, 3
B 2, 4
C 3
D 4, 5
ANS:A - 1, 3 In the first statement along with the name space initiation we assigning variable 'b' as a new class and executing it with the specified class b. Issue for book. |


For help Students Orientation
Mcqs Questions
One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.