Conceptual
Login

Observer Pattern

A subject maintains a list of observers and notifies each when its state changes, letting dependents stay synchronized without the subject knowing their concrete types.