Telgar/Problem27

From Exalted - Unofficial Wiki
Jump to: navigation, search

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;
   }

}