The intuition behind an abstract factory
pattern is to encapsulate a group of factories that have a common behaviour
with no need of specifying their classes. This pattern allows to exchange
concrete implementations with no need of changing the code that uses those
implementations. This is because the factory typically returns an abstract
pointer and the client does not care about internal details.
No comments:
Post a Comment