Observer design pattern
GoConnect.dev

GoConnect.dev @goconnect

About: GoConnect is a community sharing valuable insights on business, technology, and startup growth, with a focus on software development and strategies for scaling your business.

Location:
Poland
Joined:
Aug 14, 2020

Observer design pattern

Publish Date: Nov 17 '22
2 0

Observer is a behavioral design pattern that allows some objects to notify other objects about changes in their state.

Usage examples: The Observer pattern is pretty common in C# code, especially in the GUI components. It provides a way to react to events happening in other objects without coupling to their classes.

Identification: The pattern can be recognized by subscription methods, that store objects in a list and by calls to the update method issued to objects in that list.

Check how to implement Observer Design Pattern in https://github.com/HeyBaldur/ObserverDesignPattern

Comments 0 total

    Add comment