1.

How many categories are nested classes divided into?(a) 2(b) 3(c) 4(d) 5This question was posed to me in unit test.My doubt stems from Nested Class in chapter Class Members & Types of Object Oriented Programming

Answer»

Correct CHOICE is (a) 2

The EXPLANATION: The nested classes are divided into two MAIN categories. Namely, Static and non-static. The categories define how the classes can be used INSIDE another CLASS.



Discussion

No Comment Found

Related InterviewSolutions