document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. /**
  2.  * Class DVD
  3.  *
  4.  * Maisieeeee
  5.  */
  6. public class DVD extends Item
  7. {
  8.     private String director;
  9.     public DVD(String title, int playingtime, String director) //constructor
  10.     {
  11.         super(title,playingtime);
  12.         this.director=director;
  13.     }
  14.     public void setComment(String comment) //method untuk memasukkan comment DVD
  15.     {
  16.         super.setComment(comment);
  17.     }
  18.     public void setGotIt(boolean gotit) //method untuk memasukkan nilai ketersediaan DVD
  19.     {
  20.         super.setGotIt(gotit);
  21.     }
  22.     public String getDirector() //method untuk return nama director
  23.     {
  24.         return director;
  25.     }
  26.     public void print() //method untuk mencetak nama director
  27.     {
  28.         System.out.println("Director: " + director);
  29.     }
  30. }
');