当然也是new一个对象出来:'(
class BaiFuMei{
String complexion = "白";
String treasure = "富";
String appearance = "美";
public void Stature(){
System.out.println("身材好");
}
public void Character(){
System.out.println("温柔");
}
}
class Test{
public static void main(String args[]){
BaiFuMei bfm = new BaiFuMei();
bfm.Stature();
bfm.Character();
System.out.println(bfm.complexion+bfm.treasure+bfm.appearance);
}
} |
|