SlideShare a Scribd company logo
Design
Patterns
BY: NAME
Creational Patterns
Singleton Patterns
The Singleton pattern ensures a class has only one instance and provides a global point of access to it.
This pattern is useful in scenarios where exactly one object is needed to coordinate actions across the
system.
Key Features:
1. Private Constructor: Restricts instantiation of the class from other classes.
2. Static Instance: Holds the single instance of the class.
3. Global Access Point: Provides a method to access the instance.
Builder Patterns
The Builder pattern separates the construction of a complex object from its representation, allowing
the same construction process to create different representations. It is useful for creating objects with
many optional parts or configurations.
Key Features:
1. Builder: Specifies an abstract interface for creating parts of a Product object.
2. Concrete Builder: Constructs and assembles parts of the product by implementing the Builder
interface.
3. Product: Represents the complex object under construction.
4. Director: Constructs an object using the Builder interface.
Structural Patterns
Adapter Patterns
The Adapter pattern converts the interface of a class into another interface that a client expects. It
allows incompatible interfaces to work together, acting as a bridge between them.
Key Features:
1. Adapter: Implements the interface that the client expects.
2. Adaptee: The existing interface that needs adapting.
3. Client: The class that interacts with the adapter.
Bridge Patterns
The Bridge pattern decouples an abstraction from its implementation so that the two can vary
independently. This pattern is useful when both the abstraction and the implementation need to be
extended using inheritance.
Key Features:
1. Abstraction: Defines the abstraction's interface and maintains a reference to an object of type
Implementor.
2. Refined Abstraction: Extends the interface defined by Abstraction.
3. Implementor: Defines the interface for implementation classes.
4. Concrete Implementor: Implements the Implementor interface.
Composite Patterns
The Composite pattern allows you to compose objects into tree structures to represent part-whole
hierarchies. This pattern lets clients treat individual objects and compositions of objects uniformly.
Key Features:
1. Component: Declares the interface for objects in the composition.
2. Leaf: Represents leaf objects in the composition. A leaf has no children.
3. Composite: Defines behavior for components having children and stores child components.
Behavioral Patterns
Command Patterns
The Command pattern encapsulates a request as an object, thereby allowing parameterization of
clients with different requests, queue or log requests, and support undoable operations.
Key Features:
•Command: Declares an interface for executing an operation.
•Concrete Command: Implements the Command interface to perform a specific action.
•Invoker: Asks the command to carry out the request.
•Receiver: Knows how to perform the operations associated with carrying out a request.
Interpreter Patterns
The Interpreter pattern provides a way to evaluate language grammar or expressions. This pattern
involves defining a grammar for a language and an interpreter that uses the grammar to interpret
sentences in the language.
Key Features:
•Abstract Expression: Declares an interface for interpreting.
•Terminal Expression: Implements an interpret operation for terminal symbols.
•Nonterminal Expression: Implements an interpret operation for nonterminal symbols.
•Context: Contains information that is global to the interpreter.
Observer Patterns
The Observer pattern defines a one-to-many dependency between objects so that when one object
changes state, all its dependents are notified and updated automatically.
Key Features:
•Subject: Maintains a list of observers and notifies them of any state changes.
•Observer: Defines an updating interface for objects that should be notified of changes in a subject.
Conclusion
Applying design patterns to the given scenario enhances
the system's maintainability, scalability, and flexibility. The
Singleton pattern ensures a single point of control for the
Systems Manager. The Factory Method pattern abstracts
the creation process, promoting loose coupling. The
Composite pattern manages the hierarchical relationship
between ships and their sections, while the Strategy
pattern allows dynamic selection of algorithms for finding
available ships. Finally, the Observer pattern enables
efficient notification of changes between dependent
objects. Together, these patterns provide a robust
framework for implementing the described system.

More Related Content

DOCX
Design patterns
PDF
Mastering Design Patterns in Java: A Comprehensive Guide
PDF
common design patterns summary.pdf
PPTX
Gof design patterns
PDF
Design Patterns Java programming language.pdf
PDF
designpatterns-.pdf
PPTX
Design patterns
PPT
Bartlesville Dot Net User Group Design Patterns
Design patterns
Mastering Design Patterns in Java: A Comprehensive Guide
common design patterns summary.pdf
Gof design patterns
Design Patterns Java programming language.pdf
designpatterns-.pdf
Design patterns
Bartlesville Dot Net User Group Design Patterns

Similar to Design Patterns in technology documentation (20)

PPT
Software Design Patterns
PPT
Software Design Patterns
DOCX
Design Pattern Notes: Nagpur University
PDF
Gof design pattern
PPTX
Cs 1023 lec 8 design pattern (week 2)
PDF
Design Pattern in Software Engineering
PPT
Lesson11 more behavioural patterns
PPT
Software Architecture and Project Management module III : PATTERN OF ENTERPRISE
PDF
Basic design pattern interview questions
DOCX
Patterns (contd)Software Development ProcessDesign patte.docx
PPTX
ap assignmnet presentation.pptx
PPTX
Typescript design patterns applied to sharepoint framework - Sharepoint Satur...
PPT
Design Patterns
PPT
Design pattern in android
PPTX
Software Patterns
PPTX
Behavioral pattern By:-Priyanka Pradhan
PPSX
Prophecy Of Design Patterns
PPT
Ch19
PDF
Java Design Patterns Interview Questions PDF By ScholarHat
PPTX
Architecture and design
Software Design Patterns
Software Design Patterns
Design Pattern Notes: Nagpur University
Gof design pattern
Cs 1023 lec 8 design pattern (week 2)
Design Pattern in Software Engineering
Lesson11 more behavioural patterns
Software Architecture and Project Management module III : PATTERN OF ENTERPRISE
Basic design pattern interview questions
Patterns (contd)Software Development ProcessDesign patte.docx
ap assignmnet presentation.pptx
Typescript design patterns applied to sharepoint framework - Sharepoint Satur...
Design Patterns
Design pattern in android
Software Patterns
Behavioral pattern By:-Priyanka Pradhan
Prophecy Of Design Patterns
Ch19
Java Design Patterns Interview Questions PDF By ScholarHat
Architecture and design
Ad

More from AraniNavaratnarajah2 (8)

PPTX
object oriented programming concepts.pptx
PPTX
Exploratory Data Analysis and Machine Learning.pptx
PPTX
Note Book.pptx
PPTX
ICT Resources.pptx
DOCX
DOCX
online-package-delivery.docx
DOCX
PPTX
Communication & Planning.pptx
object oriented programming concepts.pptx
Exploratory Data Analysis and Machine Learning.pptx
Note Book.pptx
ICT Resources.pptx
online-package-delivery.docx
Communication & Planning.pptx
Ad

Recently uploaded (20)

PPTX
Relationship Management Presentation In Banking.pptx
PPTX
chapter8-180915055454bycuufucdghrwtrt.pptx
PDF
natwest.pdf company description and business model
PPT
The Effect of Human Resource Management Practice on Organizational Performanc...
PPTX
Emphasizing It's Not The End 08 06 2025.pptx
PPTX
water for all cao bang - a charity project
PDF
Tunisia's Founding Father(s) Pitch-Deck 2022.pdf
PPTX
BIOLOGY TISSUE PPT CLASS 9 PROJECT PUBLIC
PPTX
Introduction-to-Food-Packaging-and-packaging -materials.pptx
PPTX
Tablets And Capsule Preformulation Of Paracetamol
PDF
Swiggy’s Playbook: UX, Logistics & Monetization
PDF
Presentation1 [Autosaved].pdf diagnosiss
PPTX
ART-APP-REPORT-FINctrwxsg f fuy L-na.pptx
PDF
Nykaa-Strategy-Case-Fixing-Retention-UX-and-D2C-Engagement (1).pdf
PPTX
AcademyNaturalLanguageProcessing-EN-ILT-M02-Introduction.pptx
DOCX
"Project Management: Ultimate Guide to Tools, Techniques, and Strategies (2025)"
PPTX
Effective_Handling_Information_Presentation.pptx
PPTX
Presentation for DGJV QMS (PQP)_12.03.2025.pptx
PPTX
Human Mind & its character Characteristics
PPTX
Self management and self evaluation presentation
Relationship Management Presentation In Banking.pptx
chapter8-180915055454bycuufucdghrwtrt.pptx
natwest.pdf company description and business model
The Effect of Human Resource Management Practice on Organizational Performanc...
Emphasizing It's Not The End 08 06 2025.pptx
water for all cao bang - a charity project
Tunisia's Founding Father(s) Pitch-Deck 2022.pdf
BIOLOGY TISSUE PPT CLASS 9 PROJECT PUBLIC
Introduction-to-Food-Packaging-and-packaging -materials.pptx
Tablets And Capsule Preformulation Of Paracetamol
Swiggy’s Playbook: UX, Logistics & Monetization
Presentation1 [Autosaved].pdf diagnosiss
ART-APP-REPORT-FINctrwxsg f fuy L-na.pptx
Nykaa-Strategy-Case-Fixing-Retention-UX-and-D2C-Engagement (1).pdf
AcademyNaturalLanguageProcessing-EN-ILT-M02-Introduction.pptx
"Project Management: Ultimate Guide to Tools, Techniques, and Strategies (2025)"
Effective_Handling_Information_Presentation.pptx
Presentation for DGJV QMS (PQP)_12.03.2025.pptx
Human Mind & its character Characteristics
Self management and self evaluation presentation

Design Patterns in technology documentation

  • 3. Singleton Patterns The Singleton pattern ensures a class has only one instance and provides a global point of access to it. This pattern is useful in scenarios where exactly one object is needed to coordinate actions across the system. Key Features: 1. Private Constructor: Restricts instantiation of the class from other classes. 2. Static Instance: Holds the single instance of the class. 3. Global Access Point: Provides a method to access the instance.
  • 4. Builder Patterns The Builder pattern separates the construction of a complex object from its representation, allowing the same construction process to create different representations. It is useful for creating objects with many optional parts or configurations. Key Features: 1. Builder: Specifies an abstract interface for creating parts of a Product object. 2. Concrete Builder: Constructs and assembles parts of the product by implementing the Builder interface. 3. Product: Represents the complex object under construction. 4. Director: Constructs an object using the Builder interface.
  • 6. Adapter Patterns The Adapter pattern converts the interface of a class into another interface that a client expects. It allows incompatible interfaces to work together, acting as a bridge between them. Key Features: 1. Adapter: Implements the interface that the client expects. 2. Adaptee: The existing interface that needs adapting. 3. Client: The class that interacts with the adapter.
  • 7. Bridge Patterns The Bridge pattern decouples an abstraction from its implementation so that the two can vary independently. This pattern is useful when both the abstraction and the implementation need to be extended using inheritance. Key Features: 1. Abstraction: Defines the abstraction's interface and maintains a reference to an object of type Implementor. 2. Refined Abstraction: Extends the interface defined by Abstraction. 3. Implementor: Defines the interface for implementation classes. 4. Concrete Implementor: Implements the Implementor interface.
  • 8. Composite Patterns The Composite pattern allows you to compose objects into tree structures to represent part-whole hierarchies. This pattern lets clients treat individual objects and compositions of objects uniformly. Key Features: 1. Component: Declares the interface for objects in the composition. 2. Leaf: Represents leaf objects in the composition. A leaf has no children. 3. Composite: Defines behavior for components having children and stores child components.
  • 10. Command Patterns The Command pattern encapsulates a request as an object, thereby allowing parameterization of clients with different requests, queue or log requests, and support undoable operations. Key Features: •Command: Declares an interface for executing an operation. •Concrete Command: Implements the Command interface to perform a specific action. •Invoker: Asks the command to carry out the request. •Receiver: Knows how to perform the operations associated with carrying out a request.
  • 11. Interpreter Patterns The Interpreter pattern provides a way to evaluate language grammar or expressions. This pattern involves defining a grammar for a language and an interpreter that uses the grammar to interpret sentences in the language. Key Features: •Abstract Expression: Declares an interface for interpreting. •Terminal Expression: Implements an interpret operation for terminal symbols. •Nonterminal Expression: Implements an interpret operation for nonterminal symbols. •Context: Contains information that is global to the interpreter.
  • 12. Observer Patterns The Observer pattern defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically. Key Features: •Subject: Maintains a list of observers and notifies them of any state changes. •Observer: Defines an updating interface for objects that should be notified of changes in a subject.
  • 13. Conclusion Applying design patterns to the given scenario enhances the system's maintainability, scalability, and flexibility. The Singleton pattern ensures a single point of control for the Systems Manager. The Factory Method pattern abstracts the creation process, promoting loose coupling. The Composite pattern manages the hierarchical relationship between ships and their sections, while the Strategy pattern allows dynamic selection of algorithms for finding available ships. Finally, the Observer pattern enables efficient notification of changes between dependent objects. Together, these patterns provide a robust framework for implementing the described system.