-
If I am correct, the adapter design pattern changes a class or function to have a different interface. Does that mean that it changes a class or function
- to accept a different type of input only, or
- to accept a different type of input, and/or to provide a different type of output?
-
I saw "wrapper" is used to describe a case of changing a function to provide a different type of output.
Is "wrapper" a design pattern?
What is the difference a wrapper and an adapter?
Thanks.
Aucun commentaire:
Enregistrer un commentaire