class Ren {
public static void open() {
System.out.println("打開冰箱門");
}
}
class Ren2 {
public static void in() {
System.out.println("走進(jìn)冰箱");
}
}
class Ren3 {
public static void close() {
System.out.println("關(guān)上冰箱門");
}
}
public class Demo2 {
public static void main(String[] args) {
Ren r = new Ren();
Ren2 r2 = new Ren2();
Ren3 r3 = new Ren3();
r.open();
r2.in();
r3.close();
}
}
class Wanjia {
String id;
String sex;
int jiBie;
public static void shengJi() {
System.out.println("打怪升級(jí)");
}
}
public class Demo {
public static void main(String[] args) {
// TODO Auto-generated method stub
Wanjia w = new Wanjia();
w.id = "wlwz";
System.out.println(w.id);
w.shengJi();
}
}