Question: C++ 2PM: Design a C++ class and submit it as part of a header file. (12 points) Submit a header file that includes the interface
2PM: Design a C++ class and submit it as part of a header file. (12 points) Submit a header file that includes the interface of the class BookStore Specifically, a BookStore object manages the following vital information of a bookstore 1. the location of a book store 2 the year when the store was established 3 the number of employees 4 a collection of books available at a store. Please use the following data type Book struct Bookl string title string language string firstAuthor, For your BookStore class, please include the folowng member functions (no need to implement them as you are working in a header file) 1. a defaut constructor 2 another constructor that allows one to provide the initial value of a store's location 3 a read-only member function to return the store's year of estabishment 4 a member function called addANewBook that allows one to add a new book to the store's collection Your submitted header file will include the following content 1 complation directives (aitndet) 2 a list of ibraries to include 3 (optional) copy & paste the struct Book above 4 the class BookStore
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
