Telgar/Problem27

From Exalted - Unofficial Wiki
Revision as of 16:46, 16 February 2005 by 168.190.200.39 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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;
   }

}