lundi 5 mars 2018

Factory method - Does application class need to be abstract?

Erich Gamma's GOF design pattern book says:

enter image description here

Whereas the word application can create several documents on its own as shown below:

enter image description here

It appears that one application can create several documents.
In what kind of case then will I require to make Application class abstract and then derive from it?

Aucun commentaire:

Enregistrer un commentaire