- 🏋️♂️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.
- 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.
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
- For any inquires or feedback regarding this project, please contact me on: [email protected].
End
Author: Tmane Chouaib