* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package class_orang;
/**
*
* @author User
*/
class class_orang {
public class_orang() {
}
public String warnakulit;
public String jenisrambut;
public String bentukwajah;
public String jenissuara;
public float ideal;
public void warnakulit(){
System.out.println("warna kulit=putih");
}
public void jenisrambut (){
System.out.println("jenis rambut=lurus");
}
public void bentukwajah (){
System.out.println("bentuk wajah=oval");
}
public void jenissuara (){
System.out.println("jenis suara=sopran");
}
public void ideal (){
System.out.println("ideal=ideal");
}
public void wanita (String Temp){
warnakulit= "putih";
jenisrambut="lurus";
bentukwajah="oval";
jenissuara="sopran";
}
public void wanita (float Temp, float tinggi){
ideal= (float)tinggi*1;
}
public String getwarnakulit (){
return warnakulit;
}
public void setwarnakulit (String Temp){
warnakulit=Temp;
}
public String getjenisrambut (){
return jenisrambut;
}
public void setjenisrambut(String Temp){
jenisrambut=Temp;
}
public String getbentukwajah (){
return bentukwajah;
}
public void setbentukwajah (String Temp){
bentukwajah=Temp;
}
public String getjenissuara (){
return jenissuara;
}
public void setjenissuara (String Temp){
jenissuara=Temp;
}
public static void main(String[] args) {
class_orang x=new class_orang();{
x.warnakulit();
x.jenisrambut();
x.bentukwajah();
x.jenissuara();
}
}
}
Posted by 01.40 and have
0
komentar
, Published at
Tidak ada komentar:
Posting Komentar