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  >>  Programming Languages  >>  C++  >>  OOPS
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
In what situation factory design patterns,DAO design
patterns,singleton design patterns should be applied.?
 Question Submitted By :: Rakesh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: In what situation factory design patterns,DAO design patterns,singleton design patterns should be applied.?
Answer
# 1
Use Factory Design Pattern when
- a class cannot anticipate the class of objects it must 
create
- a class wants its subclasses to specify the objects it 
creates
- classes delegate the responsibility to one of several 
helper subclasses and you want to knowledge of which helper 
subclass is the delegate.

Use Singleton Pattern when
- there must be one instance of a class and it must be 
accessible to clients from well known access point.
-the sole instance should be extensible by subclassing, and 
client should be able to use an extended instance without 
modifying their code.
 
Is This Answer Correct ?    0 Yes 0 No
Monica
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
What is polymorphism ? Explain with examples Ness-Technologies6
What do you mean by pure virtual functions?  4
Can we have a private virtual method ? Ness-Technologies5
what is new modifier in C# HCL6
Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed? EA-Electronic-Arts2
How is exception handling carried out in c++?  1
What is command routing in MFC GE1
What is the differances between a abstract calss and interface Aviva2
What is the difference between pass by reference and pass by value? TCS6
all about pointers  2
pointers are support in C#? if yes then how to use it? Softvision-Solution5
What is encapsulation? TCS8
Explain polymorphism? What r the types of polymorphism? pls give examples? HCL2
what is multi level inheritance give n example ? Ness-Technologies2
What do you mean by binding of data and functions?  1
What do you mean by public, private, protected and friendly?  1
What are generic functions and generic classes?  2
what is virtual destructor TCS5
what is multithreading in c++ , what is difference between multithreading and singlethreading.  1
In multilevel inheritance constructors will be executed from the .... class to ... class  1
 
For more OOPS 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