What is adapter class ? Explain its purpose.
Answers
Answered by
0
Answer:
Hey Mate,
This might help you
Here's your answer:-
An adapter class provides the default information about all methods in an event listener interface. Adapter classes are very useful when we want to process only a few of the events that are handled by the event listener interface.
Explanation:
The purpose of the adaptor class is as follows:-
If a class extends on adapter class, we can override some methods which is needed; it can simply be the creation of the event handlers in certain situation ;It provides an empty implementation of all the methods in the event listeners methods.It provides a way how to use classes in multiple ways.
Hope this helps you.
Please mark as the brainliest answer.
Follow me.. to get such answers...
Similar questions