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


Please Help Members By Posting Answers For Below Questions

How does session work in asp net?

557


Please brief not about xsd,xslt & xml?

546


Differentiate between structure and class.

585


Explain Optimization technique description?

601


What is the difference between a default skin and a named skin?

597






Why is it preferred to not use finalize for clean up?

563


Explain different types of Caching techniques in ASP.NET?

552


What are the versions of garbage collection?

1460


Any disadvantages in Dataset and in reflection ?

2829


What is the difference between system.stringbuilder and system.string

266


How can you debug your.net application?

556


What are the disadvantages of view state?

599


Is redux flux?

542


What are the Types of session management in ASP.NET

566


How do you do client-side validation in .net? How to disable validator control by client side javascript?

538