Member Inner Class

If class B is inside class A => B is a member and an Inner Class


main()
{ 
A obj = new A();
A.B obj1 = obj.new B();
}

//If j is member of class B
obj1.j=5;

.class files generated in this case:

A.class A$B.class


Children
  1. Qualified this construct

Backlinks