How To Refer To Method Of Nested Class #340
How to refer to method of nested class?
This multiple choice question (MCQ) is related to the book/course gs gs111 OOP Object Oriented Programming Java. It can also be found in gs gs111 OOps Objects - OOPs MCQ: Object Reference - Quiz No.1.
How to refer to method of nested class?
enclosingClassObject.innerClassObject.method();
innerClassObject.method();
method();
depends on where the method is being called