mardi 20 juin 2017

Is the adapter design pattern for change of input only or change of input and/or output?

  1. 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?
  2. 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