UGC-NET | UGC NET CS 2016 July – III | Question 38

It is possible to define a class within a class termed as nested class. There are _____ types of nested classes.
(A) 2
(B) 3
(C) 4
(D) 5


Answer: (A)

Explanation: It is possible to define a class within a class termed as nested class. There are two types of nested classes.
1 – Outer class will use argument of inner class.
2 – Inner and outer class are independent to each other.(different argument)
So, optioin (A) is correct.

Quiz of this Question



My Personal Notes arrow_drop_up