mardi 28 avril 2015

In abstract factory pattern the main abstract factory class, Does it always have to be an abstract class?

All the example i see of Abstract factory Pattern They use an abstract class to give the Abstraction for factories.
Is it always required to use abstract class?

Given the circumstances we can happily use Interface.
If we use interface does it going to violate the Design principle?

Example I was Reading

Tutorials Point
oodesign

Aucun commentaire:

Enregistrer un commentaire