public class HP {
public String nama="Blacberry";
public String warna="Putih";
public String kelebihan="Bisa mengakses microsoft office sederhana";
public String kekurangan="Lambat";
public int type = 8520;
public void nama(){
System.out.println("Nama HP: "+nama);
}
public void type(){
System.out.println("Type: "+type);
}
public void warna(){
System.out.println("Warna: "+warna);
}
public void kelebihan(){
System.out.println("Kelebihan: "+kelebihan);
}
public void kekurangan(){
System.out.println("Kekurangan: "+kekurangan);
}
public static void main(String[] args) {
HP a=new HP();
a.nama();
a.warna();
a.type();
a.kelebihan();
a.kekurangan();
}
}
Posted by 00.23 and have
0
komentar
, Published at
Tidak ada komentar:
Posting Komentar