elibraryportal Logo

Member Inner Class in Java

→ A class that is created inside the class but outside the method is known an Member Inner Class.

→ Member inner class can be declared as public, private, protected, final and abstract.

Example1

Output :-

Member Inner

Example2

Output:-

Member Inner

Example3

Output:-

Member Inner