Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

Design Pattern


STRATEGY PATTERN

1. ScoreBoard

  • Allows tap on different object with different calculation for score.

2. Payment options

  • Allows to choose different payment options.

OBSERVER PATTERN

  • email subscriber

DECORATOR PATTERN

  • Icecream shop
    • add new type of ice creams with the help of decorator.

FACTORY PATTERN

  • Hamburger Store
    • Remove conditions to get different kind of burgers
    • suppose if we have 200 types of burgers - then we will have 200 conditions :(
    • thats where Factory patterns comes in

SINGLETON PATTERN

- sometimes we do not need too many instances of a class
- singleton helps us create only one instance

COMMAND PATTERN

- Game controller example

ADAPTER PATTERN

- Helps in connecting two different things (interfaces)

FACADE PATTERN

- provides a unified interface to a set of interfaces in the sub system.

TEMPLATE PATTERN

- defines the skeleton of an algo in a method, referring some steps for subclass

ITERATOR PATTERN

- provides a way to access the element of an aggregate object sequentially
without exposing its underlying representation.

STATE DESIGN PATTERN

- Allows an object to alter its behavior when its internal state changes

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages