package zuoye;
public class qimo {
public static void main(String[] args) {
// 创建对象
pokemmo stu = new pokemmo();
// 设置对象属性
stu.number = 1;
stu.name = "小火龙";
stu.attribute = "火";
System.out.println("编号:" + stu.number + "名字:" + stu.name + "属性" + stu.attribute);
// 调用对象的方法
stu.jineng();
}
}
class pokemmo{
int number;
String name;
String attribute;
void jineng() {
System.out.println(name + "正在释放技能");
}
}