answersLogoWhite

0


Best Answer

class Book

{

public:

Book(std::string title, std::string author, std::string publisher, double price) : m_title(title), m_author(author), m_publisher(publisher), m_price(price) {}

std::string get_title()const{return(m_title);}

std::string get_author()const{return(m_author);}

std::string get_publisher()const{return(m_publisher);}

int get_price()const{return(m_price);}

private:

std::string m_title;

std::string m_author;

std::string m_publisher;

double m_price;

}

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: 1 Define a class in C plus plus to store following information of books Title Author Publisher Price?
Write your answer...
Submit
Still have questions?
magnify glass
imp