Code: Select all
public class TestClass
{
public class A
{
}
public static class B
{
}
public void useClasses()
{
//1
}
}
b. new TestClass.B();
c. new A();
d. new TestClass.A();
e. All of these are valid.
I marked option a by the statement "correctly instantiate objects of various classes". wrong interpretation ? Because the only one that make various object instances is in option a.