// File: Book.h // // Class definition of Book class derived from OrderItem base class. // A book has a title, an author and a rating. The is_rated member // records whether a book has been rated. // #ifndef BOOK_H #define BOOK_H #include #include "OrderItem.h" using namespace std ; class Book: public OrderItem { public: Book() ; Book(string title, string author, unsigned int sku, unsigned int price) ; void PrintItem() ; void SetRating(unsigned int rating) ; protected: string m_title ; // title of book string m_author ; // author of book bool is_rated ; // if the book has been rated unsigned int m_rating ; // rating of book, should be 1 thru 5 inclusive }; # endif