public override void DisplayBookInfo() { Console.WriteLine(TypeName + " " + TypeDescription); foreach (var i in books) { BookComponent aBook = (BookComponent)i; aBook.DisplayBookInfo(); } }
public BookShelf(BookComponent bookType) { newBookList = bookType; }
public virtual void Add(BookComponent aComponent) { throw new NotSupportedException(); }
public override void Delete(BookComponent aComponent) { books.Remove(aComponent); }
public override void Add(BookComponent aComponent) { books.Add(aComponent); }
public virtual void Delete(BookComponent aComponent) { throw new NotSupportedException(); }