Пример #1
0
 internal Book(string name)
     : base(name)
 {
     AuthorBehavior = new HasAuthors();
     YearBehavior = new YearInfo();
 }
Пример #2
0
 internal NewsPaper(string name)
     : base(name)
 {
     AuthorBehavior = new NoAuthors();
     YearBehavior = new YearInfo();
 }
Пример #3
0
 public NewsPaper(string name)
     : base(name)
 {
     AuthorBehavior = new NoAuthors();
     YearBehavior   = new YearInfo();
 }
Пример #4
0
 public Book(string name)
     : base(name)
 {
     AuthorBehavior = new HasAuthors();
     YearBehavior   = new YearInfo();
 }