Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 403 Bytes

design_patterns.md

File metadata and controls

8 lines (7 loc) · 403 Bytes

Design patterns used in the projet

  1. Factory pattern (for class creation)
  2. Strategy pattern (for classes that use multiple algorithms - renting planning)
  3. Observer pattern (update users on number of stations)
  4. Visitor pattern (rides payment)
  5. Singleton pattern (to classes that will have only one instance)
  6. Observer pattern (terminal must be informed if the station is on service or not)