mercredi 27 avril 2016

Consequences of using an adapter pattern

I have read in lecture notes that consequences of using adapter pattern are:

  1. for class case:

    • cannot adapt class with its subclasses
    • can overload adaptee object methods
  2. 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