Office Document APIs for .NET
ITIL Career Advice
PMP Career Advice
Android Intel XDK
Welcome Guest !
Uses of abstract factory design pattern [Resolved]
on 1/20/2014 |
| Views : 918 | Status :
| Replies : 1
Write New Post
Un Answered Posts
when and in which scenario abstract factory design pattern and how it is different from factory design pattern? what are its advantages? please explain with real world example..
Reply with Attachment
A real life example for the use of the Abstract Factory pattern is providing data access to two different data sources (e.g. a SQL Database and a XML file). You have two different data access classes (a gateway to the datastore). Both inherit from a base class that defines the common methods to be implemented (e.g. Load, Save, Delete).
Which data source shall be used shouldn't change the way client code retrieves it's data access class. Your Abstract Factory knows which data source shall be used and returns an appropriate instance on request. The factory returns this instance as the base class type.
, if this helps please
Mark As Answer
Login to post response
I have Hosting File Only.................
how to change the location of database file dynamically in another network
How to Fixed this case task
ng-if is commenting out when the application is running how can i resolve it
I need which is best Design tool
Custom View data from partial view to view
How to know this clarification for this concept
how to clear textboxes in mvc5