Nested class in Java
Java allows us to define a class that belongs to another class, for example:
1 2 3 4 5 6 7 8 |
package com.huongdanjava.javaexample; public class Application { class Builder { } } |
Class is defined inside another class, we call it nested class and this other class is called outer class. In my example above, the Builder is a nested class and… Read More