Q:

A class (the adapter class) may be given a new interface by an adapter class in which of the two ways

0

A class (the adapter class) may be given a new interface by an adapter class in which of the two ways


  1. The adapter may subclass the adapter. The adapter can inherit adapter operations with appropriate semantics and pragmatics, override those with inappropriate semantics or pragmatics, and add operations needed for the new interface. This is the Class Adapt
  2. The adapter may hold a reference to the adapter and delegate must work to the adapter object. This approach is the Object Adapter pattern
  3. All of the mentioned
  4. None of the mentioned

Answers

C. All of the mentioned

total answers (1)