vendredi 20 mars 2020

Bridge pattern in java without abstract class

I am trying to learn Bridge pattern. So far every page I have referred to, has one abstraction as interface and other as abstract class. Abstract class holds a reference to interface. I was wondering, if I replace abstract class with interface and have a reference of second interface in each impl class, would that still make sense in context of Bridge pattern.

Aucun commentaire:

Enregistrer un commentaire