Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in java plz A. The Disk class is the super class. The code is below: public class Disk { private String title; private int playTime;

in java plz image text in transcribed
image text in transcribed
A. The Disk class is the super class. The code is below: public class Disk { private String title; private int playTime; public Disk (String title, int playTime) ! this.title = title; this.playTime = playTime; 1 public String getTitle() { return title; public int getplayTime () { return playTime; ) public String toString() { return "Title: " + title + " Play time: " + playTime; ) ) Part II: ArrayList and Inheritance [40 points) Question 1 (20 points] Implement the class Audio only. The code of the classes Disk and Video is provided below. Disk -title: String - playTime: int // in minutes + Disk(title: String, playTime: int) + getters + toString(): String 4 Audio -artist: String - tracksList: ArrayList + Audio(artist: String, ti: String, pTime: int) + getArtist(): String + get TracksList(): ArrayList + addTrack(name: String): void + removeTrack(name: String): void + toString(: String Video - director: String - description: String + Video(dir: String, desc: String, ti: String, pTime: int) + toString(): String

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions