예제 #1
0
 public void detachObserver(Observer observer)
 {
     if (this.observer == observer)
     {
         this.observer = null;
     }
 }
예제 #2
0
 public void attachObserver(Observer observer)
 {
     this.observer = observer;
 }