Book.h 413 B

1234567891011121314151617
  1. #ifndef _BOOK_H
  2. #define _BOOK_H
  3. class Book {
  4. public:
  5. Book(); // default constructor
  6. Book(std::string title, int pageNum); // constructer with title and pages
  7. std::string getTitle(); // acces private string title
  8. int getPageNum(); // access private int pageNum
  9. private:
  10. std::string title; // title of book
  11. std::string author; // author of book
  12. int pageNum; // number of pages in book
  13. };
  14. #endif