Just need Q1 and Q2
-BOOK.h
#ifndef _BOOK_H_
#define _BOOK_H_
// These two lines of preprocessor directives, and the one atthe end #endif,
// prevent the header file from being included (linked in)multiple times,
// when it is used multiple times by the user.
#include “Buy.h”
#include <string>
using namespace std;
class Book {
private:
string title, author; // private local variables
float price;
public:
Book(string,string,float); // constructor
Buy *buys; // linked list of buy
// accessor methods
string getTitle();
string getAuthor();
float getPrice();
void setTitle(string);
void setAuthor(string);
void setPrice(float);
// class methods
void buyBook(string date);
string displayBought();
int timesBought();
string toString();
};
#endif // _BOOK_H_
BUY.h
#ifndef _BUY_H_
#define _BUY_H_
// These two lines of preprocessor directives, and the one atthe end: #endif,
// prevent the header file from being included (linked in)multiple times,
//
PayPal Gateway not configured
PayPal Gateway not configured