How To Create Object Of The Inner Class #311
How to create object of the inner 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 Class Members & Types - Object Oriented Programming MCQ: Nested Class - Quiz No.2.
How to create object of the inner class?
OuterClass.InnerClass innerObject = outerObject.new InnerClass();
OuterClass.InnerClass innerObject = new InnerClass();
InnerClass innerObject = outerObject.new InnerClass();
OuterClass.InnerClass = outerObject.new InnerClass();