Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 383 Bytes

README.md

File metadata and controls

6 lines (4 loc) · 383 Bytes

Observer design pattern

  • Our Stock class is a simple POJO (Plain Old Java Object).
  • We would like to be able to take an action whenever the price of a stock changes.

Before we introduce a good solution to our problem, let's see a bad solution.