New answers tagged

1 vote

Generic observable type

Question 1) The goal of the Observer Pattern is to allow an object (a subtype of Subject) to inform some other object (an Observer) about an event. In order to do this the Subject needs to have some &...
2 votes

Generic observable type

Requiring all our observers to inherit from Observer<T> makes the type awkward to use (particularly if some other base class has a conflicting ...
  • 60.7k

Top 50 recent answers are included