please check out the fist block of code
and then the second one
As you can see,the first block of code,the constructor of class IneritInner must receive a ContainInner reference in order to invoke the constructor of class Inner.the reason for doing such is obvious,that is inner class constructor must attach to the enclosing class object.However,in the second block of code InheritInner constructor do not any reference to the class ContainInner.why?
and then the second one
As you can see,the first block of code,the constructor of class IneritInner must receive a ContainInner reference in order to invoke the constructor of class Inner.the reason for doing such is obvious,that is inner class constructor must attach to the enclosing class object.However,in the second block of code InheritInner constructor do not any reference to the class ContainInner.why?