Design Pattern Examples
Overview of object-oriented design patterns
IObserverNumberChanged Interface Reference

Represents an observer to the Subject class. An observer implements this interface and then subscribes to the Subject with the interface. The observer will be called whenever a change in the number is made. More...

Inheritance diagram for IObserverNumberChanged:
Inheritance graph
Collaboration diagram for IObserverNumberChanged:
Collaboration graph

Public Member Functions

void NumberChanged ()
 This is called whenever the number in the ObserverSubject_NumberProducer object is changed.
 

Detailed Description

Represents an observer to the Subject class. An observer implements this interface and then subscribes to the Subject with the interface. The observer will be called whenever a change in the number is made.

This interface is specific to the ObserverSubject_NumberProducer example, which is a typical requirement for a Subject that supports observers.

Definition at line 33 of file ObserverSubject_NumberProducer.cs.

Member Function Documentation

◆ NumberChanged()

void NumberChanged ( )

This is called whenever the number in the ObserverSubject_NumberProducer object is changed.

Implemented in ObserverForDecimal, ObserverForHexaDecimal, and ObserverForBinary.

Referenced by ObserverSubject_NumberProducer._NotifyNumberChanged().


The documentation for this interface was generated from the following file: