Esempio n. 1
0
 public HeightObserver(IPersonRegister p)
 {
     height = 0;
     this.p = p;
     p.Attach(this);
 }
Esempio n. 2
0
 public MonthObserver(IPersonRegister p)
 {
     this.p = p;
     p.Attach(this);
 }
Esempio n. 3
0
 public YearObserver(IPersonRegister p)
 {
     ageInYears = 0;
     this.p     = p;
     p.Attach(this);
 }
Esempio n. 4
0
 public DayObserver(IPersonRegister p)
 {
     ageInDays = 0;
     this.p    = p;
     p.Attach(this);
 }