Question: in java plz A. The Disk class is the super class. The code is below: public class Disk { private String title; private int playTime;
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
Get step-by-step solutions from verified subject matter experts
