New answers tagged observer-pattern
If you embed the interface within the class, you are tightly coupling the interface to an implementation. This pre-supposes that this implementation will be the only one for that interface, which is a bad assumption to make. In fact, with this thinking, why even have the interface in the first place. Such coupling of the interface to the implementation is ...
Top 50 recent answers are included