#include "Volume.h" #include "Visitor.h" #include Volume::Volume( const string& a, const string& t, int n ) : Book( a, t ), volNumber_( n ) { cout << "costruisco Volume(" << author() << ", " << title() << ", " << volNumber() << ")" << endl; } Volume::~Volume() { cout << "distruggo Volume(" << author() << ", " << title() << ", " << volNumber() << ")" << endl; } void Volume::print() const { cout << author() << ": " << title() << ", vol. " << volNumber() << ". " << endl; } void Volume::accept( Visitor& v ) const { v.visit( * this ); }