#ifndef BOOK_H #define BOOK_H #include "Text.h" #include class Book : public Text { public: Book( const string& a, const string& t ); ~Book(); inline const string& author() const { return author_; } inline const string& title() const { return title_; } void print() const; void accept( Visitor& ) const; private: string author_; string title_; }; #endif