Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
669 B
0
Indexable
Never
public class CD {
private String name;
private String artist;
private double price;

public CD(String cdName,String cdArtist, double cdPrice){

    this.name = cdName;
    this.artist = cdArtist;
    this.price = cdPrice;

}

public String getCDName(){
    return name;

}

public String setCDName(String name){

this.name = name;
return name;
}

public String getCDArtist(){
    return artist;

}

public String setCDArtist(String artist){

    this.artist = artist;
return artist;
}

public double getCDPrice(){

    return price;

}

public double setCDPrice(double price){

    this.price = price;
return price;
}

}