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!
Similar Questions
If one of the requirements in a university system is that a teacher can update keywords of a subject, which class would get an operation "update Keywords"?
What is a limitation of the nouns & verbs method?
This is true about messages?
[ Select ] Composition Aggregation refers to if the whole is deleted, all parts are deleted while [ Select ] Aggregation Composition provides a means of showing that the whole object is composed of the sum of its parts (other objects).
More Practical Tools for Students Powered by AI Study Helper
Making Your Study Simpler
Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!