vendredi 23 avril 2021

Inheritance of decorator pattern

In decorator pattern, an abstract class implements an interface and a concrete class(decorator) extends the abstract class. What happens to the functionality of the pattern if the concrete class directly implements the interface instead of inheriting it through an abstract class?

Aucun commentaire:

Enregistrer un commentaire