Question: C++**** Implement a Book class. The book class should have the following have private member variables for the ISBN (store as a string), title, author

C++****

Implement a Book class. The book class should have the following have private member variables for the ISBN (store as a string), title, author and whether or not the book is checked out or not. ? Write a constructor that assigns values to each member variable as well as a default constructor that leaves data uninitialized. ? Write public methods for retrieving these data values. ? Write a public method for checking a book in and out. ? Write a public method -- istream& read_book(istream& is); ? We will use this function to load a single books data into a Book object. ? This method will read a Book s data (from a text file) in the following format:

( Title: "Adventures of Huckleberry Finn" ) ( ISBN: 1234567 ) ( Author: Mark Twain )

Add operators for the Book class. Have the == operator check whether the ISBN numbers are the

same for two books. Have != also compare the ISBN numbers. Have << print out the title, author, and ISBN on separate lines. ==, != should be class methods, and << must be a function.

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!