// CSE 143, Autumn 2013 // Each CD object represents information about a CD // In class we made CDs implement the Item interface so that we could // use them interchangeably with other library items public class CD implements Item { private String singer; private String title; private int length; private int discs; // constructs a new CD with the given singer, title, length and discs. public CD(String singer, String title, int length, int discs) { this.singer = singer; this.title = title; this.length = length; this.discs = discs; } // returns the title of the CD. public String getTitle() { return title; } }