Solved

You Wish to Implement a Callback Method for an Object

Question 23

Multiple Choice

You wish to implement a callback method for an object created from a system class that you cannot change. What approach does the textbook recommend to accomplish this?


A) Create a new class that mimics the system class.
B) Extend the system class.
C) Use an inner class in the interface.
D) Use a helper class that implements the callback method.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions