What’s meant by anonymous class?

Đăng Khánh

New member
What’s meant by anonymous class?
Answer
It is an
inner class without a name and for which only a single object is created. 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.
 

Tìm kiếm

Back
Top