Difference between abstract factory pattern and factory
method pattern in .NET with example.
Answer Posted / nitin
Abstract factory pattern is used when you do not want the user to change the existing factories, instead allow him to plugin his factory class to create abstract object. Aim is to keep default framework from changing.
Factory method is used when you give the control of the entire framework to user, and he can add new methods to the factory (inorder to create new object type)
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is jade template engine?
What is tracing? Where is it used?
What is the asp.net control toolkit?
What are navigation controls? How many navigation controls are there in ASP.NET 4.0?
Explain the boxing and unboxing concept in .net?
How to you can limit Access to Web API to Specific HTTP Verb?
what are the ihttphandler and ihttphandlerfactory interfaces ?
What is Web API?
How to prevent client side validation from the ASP.NET validation controls?
What do you mean by serialize?
How does asp page work?
Explain client-side scripting?
Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc
Can we use MSSql as backend in asp.net...if yes then How.?
What parameters can you pass in the url of the api? Can get and post use the same url?