1. Create an inner class
2. Link to an external class: when an object of an inner class is generated, there is a connection between this object and the perimeter object that made it, so that it can access all members of its perimeter object without any special conditions.
3. Use. This () with. New (): 1. If you need to generate references to external class objects, you can use the names of the outer classes immediately following the dot and this. 2.DotNew DN = new Dotnew (); Dotnew.inner dni = dn.new Inner (); To create an object of an inner class directly, you cannot refer to the name Dotnew of the outer class as you would think, but you must create the inner class object using an object from the outer class.
4. Inner class and upward transformation
5. Internal classes within methods and scopes
6. Anonymous Inner class
Java Programming thought note (inner Class)