Question at position 14 Consider the design of a system used to track and manage the items in a library. From discussions with librarians and other stakeholders you identified the following possible classes and fields. Book Fields of the Book class: library ID, name, description, data of acquisition, status, title, ISBN, category, authors, publisher, publication date DVD Fields of the DVD class: library ID, name, description, data of acquisition, status, title, actors, directors, genre, rating, length Recognizing that Books, DVDs, and other forms of library media all contain similar pieces of data/information that must be tracked and managed, you decide to create a Media class (see below) and use inheritance since it improves code re-usability. Media Fields of the Media class: library ID, name, description, data of acquisition, status Which would be the most appropriate way to utilize inheritance within your UML design?Media, Book, and Movie each as standalone class (not related by inheritance)Media as a superclass, with Book and Movie as subclasses of MediaMovie as a superclass, with Book as a subclass of Movie, and Media as a standalone classBook as a superclass, with Movie as a subclass of Book, and Media as a standalone classSingle choice

A

Media, Book, and Movie each as standalone class (not related by inheritance)

B

Media as a superclass, with Book and Movie as subclasses of Media

C

Movie as a superclass, with Book as a subclass of Movie, and Media as a standalone class

D

Book as a superclass, with Movie as a subclass of Book, and Media as a standalone class

Log in for full answers

We've collected over 50,000 authentic original questions and detailed explanations from around the globe. Log in now and get instant access to the answers!

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!