#ifndef AUTHOR_H #define AUTHOR_H #include "Visitor.h" #include class Author : public Visitor { public: void visit( const Book& ); void visit( const Volume& ); void visit( const Series& ); const string& author() const { return author_; } private: string author_; }; #endif