类;狗 属性:毛色,体重 方法:计算狗的体重
class dog{
String color;
int wegiht;
void count(){
System.out .println("狗的体重为"+weight);
}
String color;
int weight;
void count(){
System.out.println("狗的体重为"+weight);
};