Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

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

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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

My Personal Notes arrow_drop_up
Last Updated : 26 Apr, 2018
Like Article
Save Article
Similar Reads