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
How can you handle unmanaged code exceptions in asp.net?
How does asp.net page work?
What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?
What is asp.net futures?
What is the significance of ASP.NET routing?
Define repository pattern in mvc.net? : asp.net mvc
What is scope of an application variable in asp.net?
Which library is used by the testers and developers to develop automated tests and create testing tools?
For which does this Codebehind="MyCode.aspx.cs" is relevent to ?
What is sdlc process?
What is asp.net and how it works?
1.What r collections? 2.What is .pdb file? 3.Is it possible to provide access to users in master page? 4.What is dirty n Phantom Read(SQL)? 5.What r different isolation levels(SQL)? 6.How to set authentication mode in web.config file?
What is voluum?
How you can access the properties and controls of master pages from content pages?
Explain a program using razor view engine to create a simple application? : asp.net mvc