The observer pattern is a pattern for working with state changes. A subject notifies a list of observers that something has changed.

Mostly related toOOP (object-oriented programming).