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
Get step-by-step solutions from verified subject matter experts
