/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Asus
*/
public class televisi {
String merk, tipe, ukuran, tombolVolume, tombolChannel;
public void merk (){System.out.println ("merk TV :" +merk);}
public void tipe (){System.out.println("tipe TV :" +tipe);}
public void ukuran (){System.out.println("ukuran" +ukuran);}
public void tombolVolume (){System.out.println("volume " +tombolVolume);}
public void tombolChannel (){System.out.println("channel " +tombolChannel);}
public static void main (String [] args){
televisi televisiku= new televisi();
televisiku.merk="Samsung";
televisiku.tipe="LCD TV";
televisiku.ukuran="52 inch";
televisiku.tombolChannel="sekarang pindah ke channel 7";
televisiku.tombolVolume="bertambah besar";
televisiku.merk();
televisiku.tipe();
televisiku.ukuran();
System.out.println("saat ini tv sudah On");
televisiku.tombolChannel();
televisiku.tombolVolume();
}
}
Tidak ada komentar:
Posting Komentar