◐ Shell
clean mode source ↗

Decorator design pattern by premaseem · Pull Request #26 · premaseem/DesignPatternsJava9

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

… resulting in too many classes
…eating class for each option.

Benefits
1. Lean code - as its not required to create class for each option
2. Price can be calculated dynamically
3. Performance improvement
4. Loose coupling.
5. Easy to update - price of can be updated at one place without touching other classes.

@premaseem premaseem changed the base branch from master to develop

October 2, 2018 16:26

1 participant

@premaseem