Unified Modeling Language,统一建模语言
1.Tigers
2. legs:int
furColor:String
3.show():viod
haut(String S):void
class Tigers{
int legs;
String furColor;
void show(){
System.out.println("legs"+legs);
System.out.println("furColor"+furColor);
}
void haut(String S){
System.out.println("Tiger bis hauting"+S);
}
}
public class Tiger{
public static void main(String args[]){
Tigers Huanan=new Tigers();
Tigers Dongbei=new Tigers();
Huanan.furColor="golden";
Dongbei.furColor="white";
Huanan.show();
Dongbei.show();
Huanan.haut("sheep");
}
}
![](https://i-blog.csdnimg.cn/blog_migrate/a61d0bec39967399c5776f6a1e52aefc.png)