Multiple Choice
You wish to implement a callback method for an object created from a library class that you cannot change.What is the preferred way to accomplish this?
A) Extend the library class.
B) Use an inner class in the interface.
C) Create a new class that mimics the library class.
D) Use a helper class that implements the callback method.
Correct Answer:

Verified
Correct Answer:
Verified
Q46: Which of the following statements about interfaces
Q47: Which of the following statements is correct
Q48: When an event occurs, the event source
Q49: Consider the following declarations: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg" alt="Consider
Q50: Which of the following is true about
Q52: What is the preferred way to implement
Q53: Assume that the TimerListener class implements the
Q54: Consider the following class: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg" alt="Consider
Q55: A _ has an addActionListener() method for
Q56: Consider the following code snippet:<br>myImage.add(new Rectangle(10,10,10,10));<br>This code