Skip to content

This repository showcases the implementation of the Decorator pattern in a java-based Pizza application :octocat:

Notifications You must be signed in to change notification settings

TmaneChouaib/decorator-pattern-pizza-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decorator Pattern - Pizza App Demo

🔎 Table of Contents:

📎 About:

  • 🏋️‍♂️This repository is an application demonstrating the implementation of the Decorator design pattern in Java. The Decorator pattern allows dynamic addition of new behavior to an object by wrapping it with one or more decorators.

📎 Features:

  • Customization of pizzas with decorators.
  • Flexible and extensible design.
  • Stackable decorators for combining functionalities.
  • Reusability of decorators across various pizzas.
  • Separation of concerns for better code organization.

📎 Class diagram:

📎 Project Structure:

decorator-pattern-pizza-app/
│
├── src/
│   ├── decorators/
│   │   ├── BellPepperDecorator.java
│   │   ├── CheeseDecorator.java
│   │   ├── MushroomDecorator.java
│   │   ├── OliveDecorator.java
│   │   ├── OnionDecorator.java
│   │   └── PizzaDecorator.java
│   │
│   ├── pizzas/
│   │   ├── BasicPizza.java
│   │   ├── IPizza.java
│   │   └── MargaritaPizza.java
│   │
│   └── Main.java
│
└── README.md

📎 Contacts:

  • For any inquires or feedback regarding this project, please contact me on: [email protected].

End


Author: Tmane Chouaib

About

This repository showcases the implementation of the Decorator pattern in a java-based Pizza application :octocat:

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages