Question: In C + + : You are tasked with creating a simple Library Management System. The system should manage an inventory of books, where each

In C++: You are tasked with creating a simple Library Management System. The system should manage an inventory of books, where each book is written by a specific author.
Requirements
Book Class
Create a Book class with the following attributes:
std::string title
int year
std::string author
std::string genre
Include appropriate constructors, accessors, and mutators.
Library Class
Create a Library class with the following attributes:
Book books[10](a fixed-size array of Book objects)
int numBooks (number of books in the library)
Include appropriate constructors, accessors, and mutators.
Include a method to add a Book to the books array.
Include a method to list all books in the library.

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!