You can observe the constructor chain for the inner class when you extend an inner class . so you can see that you are able to call the super constructor of your nested class passing to that constructor the MainClass , and calling . super on mainClass object instance.13 Nis 2012
Read moreHow do you create an inner class constructor in Java?
Accessing the Private Members To instantiate the inner class, initially you have to instantiate the outer class. Thereafter, using the object of the outer class , following is the way in which you can instantiate the inner class.
Read more