What is anonymous class abstraction?

An anonymous inner class can be useful when making an instance of an object with certain “extras” such as overloading methods of a class or interface, without having to actually subclass a class. In simple words, a class that has no name is known as an anonymous inner class in Java.

Sizin İçin Seçtik  What is a method local class?

Leave a Reply

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