ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
Explain Factory pattern?
 Question Submitted By :: Swapna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Explain Factory pattern?
Answer
# 1
Factory Design Pattern is a simple decision making class
that returns one of several objects depending on the data
provided. It comes under creational type of design pattern. 


Example: 

Suppose say that want to write the code to perform
arithmetic calculations. Initially you decided to write code
for only Addition and Subtraction. And later on you decided
to add more functionality by including Multiplication and
Division. Now, if you don't use Factory Design Pattern, we
need to change the entire code to include additional
functionality. But, when we use Factory Design Pattern, It
is easy to add additional functionality when needed without
disturbing previous code. 

In factory class we create the instance of the classes
addition, subtraction, division and multiplication based on
the operator selected. 

In this way Factory Design Pattern is useful.
 
Is This Answer Correct ?    2 Yes 0 No
Swetha
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
is it possible to persiste customize object in view state? how it is?  2
Why do we use Option Explicit? Microsoft2
Which data types are supported by the RangeValidator control?  2
Difference between .NET components and COM components? Microsoft1
is it possible to access website from a remote place, without deploying it on web server?  1
What is a Repeater Control and how does it works? and what is the diffrence b/w Gridview,datalist and repeater control? USi2
Is object a value type or referenced type?  2
What is State Management in .Net and how many ways are there to maintain a state in .Net?  5
Webconfig file is cofiguration of server or browser? Wipro9
How many web.copnfig can exists in a web application & which will be used ? MMTS3
Difference between HTML control and Web Server Control?  3
how to update data using store procedure  1
what is SAP fullform SAP-Labs25
In SP has contains 10 query,By Using Dataset Object I need to fetch 8th query of records? How?  4
can I use session variable in App_code Class page?? Wipro2
When we do partial refresh of a page using update panel how server knows it(which event occurs?)  2
Name the control which can be used to reserve the space on web page for storing localized data. IBM2
what is NET Framework ? TCS4
How to Page Execute in asp.net(inside browser) Wipro1
Explain current thinking around IClonable.  1
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com