Member Classes

The class defined in the body of a class is called a member class.

Member Classes

The class defined in the body of a class is called a member class.

Member Classes

Member Classes

     

The class defined in the body of a class is called a member class. Member classes can also use instances of the same class without explicit delegation. Only the member classes can be declared as static.

Local classes

Local classes are similar to the local initializer that are declared inside the block of code of  a program. Local classes are rarely defined within a method of a class. The local classes can be instantiated many times whenever required. Local classes includes the all the features of a member class.