Object Oriented Software Development

   

Added on  2023-03-17

10 Pages2054 Words50 Views
Running head: OBJECT ORIENTED SOFTWARE DEVELOPMENT
OBJECT ORIENTED SOFTWARE DEVELOPMENT
Name of the Student:
Name of the University:
Author Note:
Object Oriented Software Development_1
1OBJECT ORIENTED SOFTWARE DEVELOPMENT
Table of Contents
Question One:.............................................................................................................................2
Question Two.............................................................................................................................4
Design Problem 1 (Compute Price):......................................................................................4
Design Problem 2 (Checkout):...............................................................................................6
References..................................................................................................................................9
Object Oriented Software Development_2
2OBJECT ORIENTED SOFTWARE DEVELOPMENT
Question One:
The creational design patterns is all about the abstraction of the instantiation process. The
design process helps in making the system independent of its objects. The system is
independent of the object’s composition, creation and representation process. The creational
design patterns use inheritance to create different classes while uses delegation of authority
while instantiating objects. The importance of creational patterns increase as the system
slowly evolves and starts depending more on object composition that inheritance. The main
utility of these patterns is to create small fundamental parts that can be implemented into the
more complex classes. This makes the process of creating objects more difficult than just
instantiating classes. There are five main types of creational design patterns. These patterns
are given as follows:
a. Abstract factory: It is one of the most popular design patterns which provides the
user with an interface to create many families of dependent objects without
mentioning the concrete classes of those objects. This pattern is also known as Kit.
The main application of this pattern is used to create a system independent of its
object processes like creation, representation and composition. It is also used when
the system needs to be configured with any one of the many families of the object.
The main consequences of using these pattern are:
1. It results in isolating of the entire concrete class.
2. It makes the process of exchanging product families easier.
3. It also helps in promoting consistency in products.
4. It makes the process of supporting new types of products difficult.
b. Builder: This is another creational design pattern that is used to separate a
construction process from its representation so that it can be reused multiple times to
create different representations of the product. This pattern is used when the algorithm
being used to create a complex object is independent of the parts of the object and its
assembling. This pattern is also used when the construction process of an object needs
different representations to be allowed. The main consequences of the pattern are:
1. The pattern lets the user change the internal representation of the product.
2. The pattern provide the user with finer control of the construction process of the
object.
Object Oriented Software Development_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Object Oriented Software Development
|7
|1021
|93

Object Oriented Software Development
|7
|1034
|90

Object Oriented Software Development
|11
|2016
|72

Design Pattern | Interfaces and Objects
|5
|1267
|11

Object Oriented Design Patterns in Java
|15
|2645
|493

Victorian Institute Of Technology - VIT Intro
|5
|831
|15