samedi 31 octobre 2020

Can we give a concreate class an interface after the concreate class is built?

I'm learning the software design currently, for the observer pattern, according to my notebook, I need an observer interface, a concrete observer class; a subject interface, a concrete subject class. However, if I currently do not have an interface for the observer, is that necessary I give it an interface? (i.e are all the 4 interfaces mandatory in the observer pattern)

Aucun commentaire:

Enregistrer un commentaire