Skip to content

Decorator design pattern - #26

Open
premaseem wants to merge 5 commits into
developfrom
decorator-pattern
Open

premaseem wants to merge 5 commits into
developfrom
decorator-pattern

Conversation

@premaseem

Copy link
Copy Markdown
Owner

No description provided.

…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant