| 1234567891011121314151617 |
- #ifndef _BOOK_H
- #define _BOOK_H
- class Book {
- public:
- Book(); // default constructor
- Book(std::string title, int pageNum); // constructer with title and pages
- std::string getTitle(); // acces private string title
- int getPageNum(); // access private int pageNum
-
- private:
- std::string title; // title of book
- std::string author; // author of book
- int pageNum; // number of pages in book
- };
- #endif
|