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...


4. What do you mean by a prototype? Define analysis
prototype



4. What do you mean by a prototype? Define analysis prototype..

Answer / som shekhar

Prototype is creational design pattern similar to abstract
factory pattern.

Most of you know abstract factory pattern, in the prototype
pattern when you want to create a clone of an object of some
class, then instead of creating directly the clone that
means using new operator and step by step copying the
elements, or you will be calling the copy constructor of the
class.

But in the real time applications we dont want the copy
constructor to be called so it is made as private, and hence
you cannot copy the items, so this design patterns says that
if you want to create the clone of a class, keep the clone
fucntion as virtual in the base class and let the derived
class implement...this is one aspect.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More OOPS Interview Questions

What's the full form of STL?

2 Answers  


what is the realstic modeling?

1 Answers  


What is the renewal class?

0 Answers   Ebix, IBM,


what type of question are asked in thoughtworks pair programming round ?

0 Answers   Thought Works,


Why static functions always uses static variables?

3 Answers  


DIFFRENCE BETWEEN STRUCTURED PROGRAMING AND OBJCET ORIENTED PROGRAMING.

5 Answers  


c++ program to swap the objects of two different classes

0 Answers  


What is difference between #define and const?

3 Answers   emc2,


Why we use classes in oop?

0 Answers  


what is runtime polymorphism? For the 5 marks.

3 Answers  


What are the 4 main oop principles?

0 Answers  


how can we design a magic square in c++?or suggest me the basic idea of it.

3 Answers  


Categories