+1 vote
in Software Architecture by (75.2k points)
A class (the adapter class) may be given a new interface by an adapter class in which of the two ways?

(a) 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 Adapter pattern

(b) The adapter may hold a reference to the adapter and delegate must work to the adapter object. This approach is the Object Adapter pattern

(c) All of the mentioned

(d) None of the mentioned

This question was addressed to me in homework.

My query is from The Adapter Patterns and Proxy Pattern topic in division Visibility, Accessibility and Information Hiding of Software Architecture

1 Answer

0 votes
by (46.2k points)
The correct choice is (c) All of the mentioned

Explanation: All of the mentioned are the two ways.

Related questions

We welcome you to Carrieradda QnA with open heart. Our small community of enthusiastic learners are very helpful and supportive. Here on this platform you can ask questions and receive answers from other members of the community. We also monitor posted questions and answers periodically to maintain the quality and integrity of the platform. Hope you will join our beautiful community
...