Question: Write a C + + class called 'library' which contain the following members: 1 . Private member variables for book Title, author name, and is

Write a C++ class called 'library' which contain the following members: 1. Private member variables for book Title, author name, and is available. is available to check if the book available in the library or not. 2. Parametrized Constructor to initialize all data members. 3. lendBook()- member function to lend available book. Display appropriate messages based on book availability. 4. returnBook()- member function to return a lended book. Display appropriate messages based on book availability. 5. display - member function to display book information. Write a program that has 2 library objects, and tests the mem functions of class library Split the code in separate files and running correctly.

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!