Abstract Factory provides one
more level of abstraction. Consider different factories each extended from
an Abstract Factory and responsible for creation of different hierarchies of
objects based on the type of factory. E.g. AbstractFactory extended
by AutomobileFactory, UserFactory, RoleFactory etc. Each
individual factory would be responsible for creation of objects in that genre.
You can also refer What is
Factory method design pattern in Java to know more details.
No comments:
Post a Comment