0% found this document useful (0 votes)
38 views

SE - 2 (Unit 1 Design Patterns) - 1

The document discusses design patterns. It begins by defining design patterns as templates that can be applied to multiple situations and improved over time, making them a robust software engineering tool. It notes that design patterns are important as they make software development easier by providing proven techniques and specifications that help developers work through applications. The types of design patterns are described as creational, structural, and behavioral. Ten specific design patterns are listed, including Factory, Abstract Factory, Singleton, Builder, Prototype, Adapter, Bridge, Filter, Composite, and Decorator patterns. The document concludes with directions for a written exam and interview assessment on the topic.

Uploaded by

Jhamz Jalilul
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

SE - 2 (Unit 1 Design Patterns) - 1

The document discusses design patterns. It begins by defining design patterns as templates that can be applied to multiple situations and improved over time, making them a robust software engineering tool. It notes that design patterns are important as they make software development easier by providing proven techniques and specifications that help developers work through applications. The types of design patterns are described as creational, structural, and behavioral. Ten specific design patterns are listed, including Factory, Abstract Factory, Singleton, Builder, Prototype, Adapter, Bridge, Filter, Composite, and Decorator patterns. The document concludes with directions for a written exam and interview assessment on the topic.

Uploaded by

Jhamz Jalilul
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Unit 1 Design Patterns

Pre-test
Directions: Answer the following questions.

1. What are design patterns?


Design patterns are not considered finished product; rather, they are templates that can be applied to
multiple situations and can be improved over time, making a very robust software engineering tool.

2. Why are design patterns important?


According to Technopedia, successful designs and architectures within design patterns make software
development easier. Establishing proven design pattern techniques makes them readily available for future
system developers. In system documentation, design patterns are also by improving existing system
maintenance to create a better help tool. By providing explicit specifications of class and object interaction
and the interaction’s original intent, design patterns help developers correctly work through the
application.

3. What are the types of design patterns?


There are three types of design patterns. The first is creational patterns. Creational patterns deal with the
creation of objects. The second one is structural patterns. Structural patterns deal with the composition of
objects. The last one is behavioral patterns. Behavioral patterns focus more on the behavior of objects, or
more precisely interaction of objects.

4. List 10 design patterns.


I. Factory Pattern (Tutorialspoint) - Factory pattern is one of the most used design patterns in Java.
II. Abstract Factory Pattern (Tutorialspoint) - Abstract Factory patterns work around a super-factory
which creates other factories.
III. Singleton Pattern (Tutorialspoint) – Singleton pattern is one of the simplest design patterns in Java.
IV. Builder Pattern (Tutorialspoint) – Builder pattern builds a complex object using simple objects and
using a step by step approach.
V. Prototype Pattern (Tutorialspoint) – Prototype pattern refers to creating duplicate object while
keeping performance in mind.
VI. Adapter Pattern (Tutorialspoint) – Adapter pattern works as a bridge between two incompatible
interfaces.
VII. Bridge Pattern (Tutorialspoint) – Bridge is used when we need to decouple an abstraction from its
implementation so that the two can vary independently.
VIII. Filter Pattern (Tutorialspoint) – Bridge is used when we need to decouple an abstraction from its
implementation so that the two can vary independently.
IX. Composite Pattern (Tutorialspoint) – Composite pattern is used where we need to treat a group of
objects in similar way as a single object.
X. Decorator Pattern (Tutorialspoint) – Decorator pattern allows a user to add new functionality to an
existing object without altering its structure.
Assessments
Assessment 1 Written Exam
Directions: Answer the following questions.

1. What are design patterns?


Design patterns are not considered finished product; rather, they are templates that can be applied to
multiple situations and can be improved over time, making a very robust software engineering tool.

2. Why are design patterns important?


According to Technopedia, successful designs and architectures within design patterns make software
development easier. Establishing proven design pattern techniques makes them readily available for future
system developers. In system documentation, design patterns are also by improving existing system
maintenance to create a better help tool. By providing explicit specifications of class and object interaction
and the interaction’s original intent, design patterns help developers correctly work through the
application.

3. What are the types of design patterns?


There are three types of design patterns. The first is creational patterns. Creational patterns deal with the
creation of objects. The second one is structural patterns. Structural patterns deal with the composition of
objects. The last one is behavioral patterns. Behavioral patterns focus more on the behavior of objects, or
more precisely interaction of objects.

4. List 10 design patterns.


I. Factory Pattern (Tutorialspoint) - Factory pattern is one of the most used design patterns in Java.
II. Abstract Factory Pattern (Tutorialspoint) - Abstract Factory patterns work around a super-factory
which creates other factories.
III. Singleton Pattern (Tutorialspoint) – Singleton pattern is one of the simplest design patterns in Java.
IV. Builder Pattern (Tutorialspoint) – Builder pattern builds a complex object using simple objects and
using a step by step approach.
V. Prototype Pattern (Tutorialspoint) – Prototype pattern refers to creating duplicate object while
keeping performance in mind.
VI. Adapter Pattern (Tutorialspoint) – Adapter pattern works as a bridge between two incompatible
interfaces.
VII. Bridge Pattern (Tutorialspoint) – Bridge is used when we need to decouple an abstraction from its
implementation so that the two can vary independently.
VIII. Filter Pattern (Tutorialspoint) – Bridge is used when we need to decouple an abstraction from its
implementation so that the two can vary independently.
IX. Composite Pattern (Tutorialspoint) – Composite pattern is used where we need to treat a group of
objects in similar way as a single object.
X. Decorator Pattern (Tutorialspoint) – Decorator pattern allows a user to add new functionality to an
existing object without altering its structure.

Assessment 2 Interview
Directions: You will be asked 5 questions about the topic. The interview will be done online or by cellphone.

You might also like