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
Describe SOA and the tenets of it?
Explain the overview of asp.net?
How do sessions work?
What is the recommended approach for asp.net mvc to globally intercept exceptions? What other functionality can be implemented with the approach? : Asp.Net MVC
Describe how to implement globalization and localization in the use interface in .net.
How use Xml data in ASP.net?
What is the use of placeholder control?
Which method is used to force all the validation controls to run?
How many types of cookies are there in asp.net?
What is asp.net and how it works?
Which is faster viewdata or viewbag?
How do you design a website with multilingual support in ASP.NET ?
Why web api is better than wcf?
When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?
What are the different properties of server control that exists?