Пример #1
0
 public SmallBook(Author author, string title, int pages)
 {
     Id       = NextId;
     Type     = "small";
     AuthorId = author.Id;
     Title    = title;
     Pages    = pages;
     Books.Add(this);
     NextId++;
 }
Пример #2
0
 public MediumBook(Author author, string title, int pages)
 {
     Id       = NextId;
     Type     = "medium";
     AuthorId = author.Id;
     Title    = title;
     Pages    = pages;
     Books.Add(this);
     NextId++;
 }