示例#1
0
 public EmailNotifier(Subject subject)
 {
     Subject = subject;
     Subject.AttachObserver(this);
 }
示例#2
0
 public YoutubeNotifier(Subject subject)
 {
     Subject = subject;
     Subject.AttachObserver(this);
 }