vendredi 17 juillet 2015

If I use abstract class instead of interface while implementing factory pattern. Would it still be a factory pattern?

For example : http://ift.tt/1LeLgqC

If I change interface shape on abstract class Shape, make concrete classes to extend Shape and Make the Shape factory return Shape abstract class typed objects. Is it still going to be a factory pattern ?

Aucun commentaire:

Enregistrer un commentaire