An inner class has access to all fields and methods (including private fields and methods) of its outer containing class . Inner classes cannot implement interfaces. An inner class object contains implicit reference to the enclosing class object.
An inner class has access to all fields and methods (including private fields and methods) of its outer containing class . Inner classes cannot implement interfaces. An inner class object contains implicit reference to the enclosing class object.