Skip to content

Instantly share code, notes, and snippets.

@yusufcakal
Created October 12, 2017 08:36
Show Gist options
  • Save yusufcakal/d5c4236ecf930ddedbdef754c4b86f68 to your computer and use it in GitHub Desktop.
Save yusufcakal/d5c4236ecf930ddedbdef754c4b86f68 to your computer and use it in GitHub Desktop.
Medium Post
public class UserWoman implements Observer {
private Observable observable;
public UserWoman() {
}
public void setObservable(Observable observable) {
this.observable = observable;
}
@Override
public void notify(String message) {
System.out.println(message + " UserWoman Mesaj Geldi.");
}
public void removeObserver(){
observable.removeObserver(this);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment