Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 can you handle unmanaged code exceptions in asp.net?

1040


How does asp.net page work?

904


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?

1836


What is asp.net futures?

1048


What is the significance of ASP.NET routing?

1035


Define repository pattern in mvc.net? : asp.net mvc

1006


What is scope of an application variable in asp.net?

950


Which library is used by the testers and developers to develop automated tests and create testing tools?

943


For which does this Codebehind="MyCode.aspx.cs" is relevent to ?

1026


What is sdlc process?

940


What is asp.net and how it works?

955


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?

2195


What is voluum?

928


How you can access the properties and controls of master pages from content pages?

910


Explain a program using razor view engine to create a simple application? : asp.net mvc

959