Question: Design a class called CD. Each object of type CD represents one compact disk in a music collectors collection The class CD will have the

Design a class called CD. Each object of type CD represents one compact disk in a music collectors collection

The class CD will have the following data: the name of the album, the name of the artist, and the length of the album. The class will have one constructor (which will have one field for each of the above data), and one method which prints out the data in a nice format.

Now write a small testing program that creates several objects of type CD and prints out the data in each.

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!