Use the observer pattern to better divide your objects' responsibilities.
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool