Question: Design and implement a class called CD that contains instance data for the title, artist, number of tracks, and cost of the CD . Include

Design and implement a class called CD that contains instance data for the title, artist, number of tracks, and cost of the CD. Include all the appropriate methods for this class. Then create a driver class called YourLastNameExamQ1, whose main method instantiates and updates several CD objects. Ask the user for details on a CD object (title, artist, tracks, cost), for example, (Double Live, Garth Brooks, 15,19.99). Display the details of the CD. Then, change the cost of the CD to $21.99, and redisplay the details of the CD. my professor codes a cetain way so please make it slightly different from online

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!