#ifndef BOOK_H #define BOOK_H class Book : public LibraryItem { private: string author; public: Book(string newtitle, string newauthor): LibraryItem(newtitle){ author = newauthor; } virtual void print() { LibraryItem::print(); cout << "\tAuthor: " << author << endl; } }; #endif