I have read in lecture notes that consequences of using adapter pattern are:
-
for class case:
- cannot adapt class with its subclasses
- can overload adaptee object methods
- for object case:
- can adapt class with its subclasses
- cannot overload adaptee object methods
- gives possibility to add new functionality
So what means that you can or cannor overload adaptee methods? Is it correct? Or maybe it should be that you can overload a target methods?
Aucun commentaire:
Enregistrer un commentaire