ClearMyBench
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Basic concepts of Object Oriented Modelling (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Basic concepts of Object Oriented Modelling
#2490
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Basic concepts of Object Oriented Modelling 3 Years, 11 Months ago Karma: 0  
The prototype pattern uses the following classes

1.Client - creates a new object by asking a prototype to clone itself.

2 Prototype - declares an interface for cloning itself.

3 ConcretePrototype - implements the operation for cloning itself.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2491
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Basic concepts of Object Oriented Modelling 3 Years, 11 Months ago Karma: 0  
Cloning Process

The process of cloning starts with an initialized and instantiated class.

The Client asks for a new object of that type and sends the request to the Prototype class.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2492
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Basic concepts of Object Oriented Modelling 3 Years, 11 Months ago Karma: 0  
A ConcretePrototype, depending of the type of object is needed, will handle the cloning through the Clone() method, making a new instance of itself.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2493
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Basic concepts of Object Oriented Modelling 3 Years, 11 Months ago Karma: 0  
We can use Prototype Pattern when a system should be independent of how its products are created, composed, and represented.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2494
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Basic concepts of Object Oriented Modelling 3 Years, 11 Months ago Karma: 0  
Prototype Pattern can also be used in the following instances:

- Classes to be instantiated are specified at run-time

- Avoiding the creation of a factory hierarchy is needed

- It is more convenient to copy an existing instance than to create a new one
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2495
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Basic concepts of Object Oriented Modelling 3 Years, 11 Months ago Karma: 0  
When the application uses a lot of prototypes that can be created and destroyed dynamically, a registry of available prototypes should be kept.

This registry is called the prototype manager .
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop
logo footer   Copyright 2009 - 2013 HotRecruiter.Com - All Rights Reserved