Observer Design Pattern

The Observer design pattern, also known as the Publish-Subscribe or Dependents, is a behavioral design pattern.