#ifndef BOOK_H #define BOOK_H /* * Class Book - data representation for a single book on a bookshelf. * * Since the entire class is inline, I guess we can get away without a * book.cpp for the time being. */ class Book { private: string title, author, subject; public: Book() { title = "undefined"; author = "unknown"; subject="uninteresting";} Book(string t, string a, string s) { title = t; author = a; subject = s; } string get_title() { return title; } string get_author() { return author; } string get_subject() { return subject; } }; #endif