Question: [15 points] Design a class called CD. Each object of type CD represents one compact disk in a music collector's collection. The class CD will
[15 points] Design a class called CD. Each object of type CD represents one compact disk in a music collector's 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 member for each of the above data), and one method, the tostring () method which presents the data in a nice format. 6. [15 points] 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
