I was studying the design patterns and came across Abstract Factory Pattern
which by definition is :
Abstract Factory Pattern says that just define an interface or abstract class for creating families of related (or dependent) objects but without specifying their concrete sub-classes.That means Abstract Factory lets a class returns a factory of classes.
But I am not able to understand it thoroughly. I even went through some examples given in this link and this question, but nothing helped.
Can anyone provide a clear explanation with a simple, real life example of Abstract Factory Pattern
and the cases in which we should use this design pattern.
Aucun commentaire:
Enregistrer un commentaire