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, 22.06.2019 00:20
What’s resistance in an electrical circuit ?
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
Now, open this passage to read about fafsa requirements. describe the information you will need to provide in order to complete a fafsa. list at least three of the required documents you must include.
Answers: 3
question
Computers and Technology, 24.06.2019 00:30
Match the sentence fragment in the first column with the appropriate ending in the second column. a little per favore?
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
Mathematics, 05.02.2020 07:56
question
Mathematics, 05.02.2020 07:56
Questions on the website: 13722361