subject

ate two classes, one called Inventory and one called Books that is a subclass of Inventory. Include a constructor in Inventory that will initialize a title and description of books. Include a method called inventoryCheck() to verify if another title exists for any new book that wishes to be added into inventory. An example maybe a new author has a title that already exists in inventory therefore you would not allow that to be added to your inventory. Include for your Books class a constructor allowing for the author's name to be initialized. Also, for your Books class, include a method that allows the user to view a list of all the authors. •Include, in your main program, the following logic:Initialize 3 Books objects with 3 books of your choice and include a title, description and author's name for each Books object.•Test your program as follows:Prompt for a book title to be checked against your current inventory. If the book title does not exist, then add the new title, author and its description to your Inventory class. If the title does exist in Inventory, then state a message that the title exists and cannot be added to the inventory. Run your completed application twice and show an example of

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:50
Q-1 which of the following can exist as cloud-based it resources? a. physical serverb. virtual serverc. software programd. network device
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What are ways to switch windows in excel? check all that apply. on the status bar, click the windows button, and then click the file name. on the task bar, click to display the excel jump list, and then click the file name. on the view tab, in the window group, click switch windows, and then click the file name. on the review tab, in the viewing group, click files, and then click the file name.
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. what does it indicate when a website displays https instead of http? a. the website is secure. b. there is no secure sockets layer. c. the secure sockets layer is hidden. d. the website is not secure.
Answers: 1
question
Computers and Technology, 23.06.2019 19:50
Which feature is selected to practice and save the timing of a presentation
Answers: 1
You know the right answer?
ate two classes, one called Inventory and one called Books that is a subclass of Inventory. Include...
Questions
question
History, 09.03.2021 20:00
question
Mathematics, 09.03.2021 20:00
question
Mathematics, 09.03.2021 20:00