What is the use of adapter class?

What is the use of adapter class?
Answer
An adapter class in JAVA is therefore used
to implement an interface having a set of dummy methods
. If a programmer chooses to inherit an adapter class, they will not be forced to implement all the methods listed under a particular listener interface.
 

Tìm kiếm

Back
Top