Which of the following is true about the inner class?

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.

Sizin İçin Seçtik  What are the differences between nested class and local class?

Leave a Reply

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