Difference between revisions of "Telgar/Problem27"

From Exalted - Unofficial Wiki
Jump to: navigation, search
m
 
m
Line 1: Line 1:
public class CD
+
 
{
 
    private int idNum;
 
    private int year;
 
    private String title;
 
    private String genre;
 
    private String artist;
 
   
 
    public CD()
 
    {
 
        idNum = 01;
 
        year = 2000;
 
        title = "Title";
 
        genre = "Rock";
 
        artist = "Artist";
 
    }
 
   
 
    public void setInfo(int yop, int idn, String art, String gen, String name)
 
    {
 
        year = yop;
 
        title = name;
 
        artist = art;
 
        genre = gen;
 
        idNum = idn;
 
    }
 
   
 
    public String getTitle()
 
    {
 
        return title;
 
    }
 
   
 
    public String getArtist()
 
    {
 
        return artist;
 
    }
 
   
 
    public String getGenre()
 
    {
 
        return genre;
 
    }
 
   
 
    public int getYear()
 
    {
 
        return year;
 
    }
 
   
 
    public int getID()
 
    {
 
        return idNum;
 
    }
 
}
 

Revision as of 17:01, 4 November 2004