Question: #include #include #include using namespace std; //Class Interface class Book{ private: int id; string title; double price; int qty; void setID(int); void setTitle(string); void setPrice(double);

 #include #include #include using namespace std; //Class Interface class Book{ private:

#include #include #include using namespace std;

//Class Interface class Book{ private: int id; string title; double price; int qty;

void setID(int); void setTitle(string); void setPrice(double); void setQty(int); void getID() const; void print() const; Book(int, string = "No Title", double = 10.95, int = 10); }

int main () { cout

//Class Implementation void Book::setID(int i){ id = i; return id; }

void Book::setTitle(string t){ title = t; }

void Book::setPrice(double p){ if(p

void Book::setQty(int q){ if(q

int Book::getID() const return id; }

void Book::print(){ cout

Book::Book(int i = 9999, string t, double p, int q){ setID(i); setTitle(t); setPrice(p); setQty(q); }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!