Inner class and anonymous class

What is meant by inner class and the anonymous class?

E

Expert

Verified

a) Inner class: Classes which are described in other classes, involving those which are described in methods are termed as inner classes. An inner class may have any accessibility involving the private.

b) Anonymous class: Anonymous class refers to a class which is described inside the method with no name and is instantiated and explained in the same place and do not have the explicit constructors.

   Related Questions in Computer Networking

©TutorsGlobe All rights reserved 2022-2023.