Research Study on Creational Design Patterns: MITS4002, VIT, 2020

Verified

Added on  2022/08/21

|5
|831
|15
Report
AI Summary
This research study, prepared for the MITS4002 Object-Oriented Software Development course at the Victorian Institute of Technology, delves into creational design patterns. It explores the core concepts and practical applications of several key patterns, including the Object Pool, Singleton, Factory, Prototype, and Builder patterns. The study examines the benefits of these patterns in terms of code reusability, flexibility, and efficient object creation. Each pattern is explained with its purpose, implementation details, and real-world examples, such as the pizza ordering process illustrating the Builder pattern. The research highlights how these patterns address common challenges in object-oriented software development, offering insights into how to design robust and maintainable systems. The study is supported by references to relevant literature in the field of software engineering.
Document Page
Victorian Institute of Technology
Master of Information Technology & Systems
MITS4002
OBJECT-ORIENTED SOFTWARE DEVELOPMENT
(Research Study)
Submitted to : Submitted by :
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Research Study
#Question 1
Document Page
Research
The Creational Design Patterns
In software engineering, The Creational Design Patterns gives different types of mechanisms for
object creation. The Creational design pattern increases the reusability and flexibility of the
code. It basically deals with the creation procedure of an object to create an ideal object for the
scenario. The object creation’s basic form could result in problems like the design and
complexity of the design which is sometimes increased due to objects creation. Creational
design patterns manage to solve such problems by supervising the creations of the object. The
Creational Design Patterns are made up of two different presiding objectives. The ideas are
encapsulating knowledge about the concrete class, which is used by the system and hiding the
implementations of these concrete class are combined and created.
The Object Pool Design Method
The object pool design is a type of design pattern which contains a specified number of objects
in the container. In this method, objects are kept into a pool, and whenever the object is
required, it can easily take from the container and the taken object is unavailable until the
object is put back to the pool container. The object pool design method always kept the
initialized objects ready other than allocating and de-allocating the object on the request. The
object pool design method helps to improve the performance and the object container which is
called pool, is essentially used to enhance the performance of the code. The object of the pool
is not created or destroyed at runtime so it required more care in implementations.
The Singleton Design Method
The singleton design pattern is known as the simplest design pattern. This design method
restricts the class instantiation to one object. The main concept of the singleton design method
is one class has only one single instance. The singleton design method is helpful when there is
only one object, which is required to synchronize with different actions throughout the system.
The name Singleton design method comes from the concept of a singleton in mathematics. This
design pattern also helps to design flexible and reusable software in object-oriented. Singleton
Document Page
objects are easily modified, implemented, and easy to reuse (Elshater, Martin, & Hassanein,
2015).
The Factory Design Method
When do we need the Factory Design Pattern?
The factory design pattern is a type of design pattern which is used when the program has a superclass with
more than one sub-classes, and based on user input, the program returns one sub-class. This design pattern
takes all the responsibilities of the instantiation of a class to the factory class (Chochlík, 2016).
The Prototype Design Method
The prototype pattern is a type of design pattern. The prototype is required when the
operation of object operation is more time consuming and costly. One of the finest accessible
ways to create an object from existing objects is a clone () method. The prototype design
method does not require subclass, but it requires to initialize operation.
The Builder Design Method
The object in a sequence of steps. This builder class is independent of other objects.
The builder pattern construction steps can create different representational. The builder
pattern comes up with control overstep of the construction process. Builder pattern helps us in
creating classes of state attributes (Ahmad et al., 2015)
Real-Time Example of Builder Design Pattern:
The basic real-time exemplar of Building a Design pattern is the process of ordering pizza.
Everyone is familiar with the pizza ordering process. Whenever someone orders a pizza from an
outlet, the pizza topping is not added in any random order because there is a step by step
process that is followed to make the pizza.
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
References:
Pressman, R.S., 2005. Software engineering: a practitioner's approach. Palgrave Macmillan.
Ahmad, Z., Asif, M., Shahid, M., & Rauf, A. (2015). Implementation of Secure Software Design
and their impact on Application. International Journal of Computer Applications, 120(10).
Chochlík, M. (2016). Implementing the factory pattern with the help of
reflection. Computing and Informatics, 35(3), 653-686.
Elshater, Y., Martin, P., & Hassanein, E. (2015, June). Using design patterns to improve web
service performance. In 2015 IEEE International Conference on Services Computing (pp.
746-749). IEEE.
chevron_up_icon
1 out of 5
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]