Bryan Murphs
,
Greenhorn
my program classA, and this class needs to be aware and update itself whenever classB changes state, what’s the best way to implement this?
Stephan van Hulst
,
Saloon Keeper
staff
Consider making class B an Observable, and class A an Observer.