Open In App

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

Last Updated : 26 Apr, 2018
Like Article
Like
Save
Share
Report

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


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads