Question: If a class implements a standard API interface that specifies more than one method but does not need many of the methods, this should be

If a class implements a standard API interface that specifies more than one method but does not need many of the methods, this should be used instead of the interface.

a. Your own detailed versions of the needed methods

b. An adapter class

c. A different interface

d. There is no other choice

Step by Step Solution

3.35 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

b An adapter class An adapter class is a class that is used to adap... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Starting Out With Java From Control Structures Questions!