Nested Class In Java

Nested Class In Java 

In java we can define a class within other class, such class called nested class

class Outer{

class Nested {

}
}

Nested classes are two types:
1. static nested classes  .
2. Non-static nested classes( inner classes).

Leave a Reply

Your email address will not be published. Required fields are marked *

34 − 29 =