July2016 cs Q38

0. It is possible to define a class within a class termed as nested class. There are _____ types of nested classes.

  • Option : 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.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *