天天看点

java 观察者模式

IWatched:

IWatcher:

Watched:

Watcher:

Test: