Skip to content
ExamSpine

Answer it

A design pattern for weather displays

4 marksYou mark it yourself against the marking points

A school weather station has a Station class that takes a new reading every minute. Three displays use the readings: a screen in reception, a page on the school website, and a log for the geography department. At the moment Station calls a method on each display by name after every reading, so every new display means changing Station.

Suggest a design pattern that would improve this design, and describe how it works and the problem it solves. [4]

Report a problem with this page