I have a question with the Adapter Pattern. I am implementing this pattern because I have a third-party library and don’t want to depend upon it.
However, I dont’t get why creating the IAdapter and the Adapter in the same proyect will remove a dependency.
Because if the third-party library changes, the package need to be recompiled, so also any class that uses the IAdapter also needs to be recompiled.
Does the IAdapter and the Adapter must be in different packages?
Aucun commentaire:
Enregistrer un commentaire