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
#2460
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  
To change a factory instead of a CreateProduct method for each product, we can use a single Create method that takes a parameter that identifies the type of product needed.

This approach is more flexible, but less secure
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2461
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  
AbstractFactory class declares only an interface for creating the products.

The actual creation is the task of the ConcreteProduct classes, where a good approach is applying the Factory Method design pattern for each product of the family.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2462
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  
Extending factories can be done by using one Create method for all products and attaching information about the type of product needed.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2463
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  
As the complexity of an application increases the complexity of classes and objects used increases.

Complex objects are made of parts produced by other objects .
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2464
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  
Hence to build a complex application we might need a mechanism for building complex objects that is independent from the ones that make up the object.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2465
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  
Builder or Adaptive Builder design pattern.


This pattern allows a client object to construct a complex object by specifying only its type and content.

The details related to the object’s representation are secured.
 
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