class pre { public: pre(); ~pre(); virtual void print() { cout << author << endl; cout << title << endl; cout << year << endl ; } char *author; char *title; int year; } class book:public pre { public: book(); ~book(); void print() { cout << editor << endl; cout << publisher << endl; pre::print(); } char *editor; char *publisher; } class inbook : public book { public: inbook(); ~inbook(); void print() { cout <