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, option (A) is correct.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Please Login to comment...