Last active
March 20, 2018 08:10
-
-
Save chj3737/3d7e595e0073380156948fa88a724fa6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Observable { | |
void notifyObservers(Object context); | |
void addObserver(Observer observer); | |
void removeObserver(Observer observer); | |
// ... count, | |
} | |
interface Observer { | |
void update(Observable obj, Object context); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment