Answered step by step
Verified Expert Solution
Question
1 Approved Answer
hello please help me finish this prompt im not very good at java. CD String title String artist double cost int tracks CD (String artistin)
hello please help me finish this prompt im not very good at java.
CD String title String artist double cost int tracks CD (String artistin) CD (String titleln, String artistin, double costln, int numTracks) double getCost() Int getTracks() void setTitle(String titleln) void setCost (double costin) String toString() A) Handwrite or type the following. 1. Write the CD class as specified in the above UML diagram. The toString() method should return the description of a CD in the following format: CD title Artist Cost 2. Write the CD Runner class, with the following: a) create a CD object using the 1st constructor b) create a 2nd CD object using the 2nd constructor c) For the first CD object, modify the title and the cost of the CD. d) Print out the number of tracks on the 2nd CD object. e) Using the toString() method print out both CDsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started