Thursday 29 January 2015

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).



No comments:

Post a Comment