請教各位大神,一下對象怎解
class Demo45 {
? ? String name;
int age;
public ?void tell() {
System.out.println("姓名"+name+"年齡"+age);
}
}
?public class leigon{
public static void main(String[] args) {
}
? ? ? ? Demo45 pre=new Demo45();
? ? ? ??
}
class Demo45 {
? ? String name;
int age;
public ?void tell() {
System.out.println("姓名"+name+"年齡"+age);
}
}
?public class leigon{
public static void main(String[] args) {
}
? ? ? ? Demo45 pre=new Demo45();
? ? ? ??
}
2015-12-02
舉報
2015-12-02
首先要看是前扣還是背扣。
你可以記住一個口訣:背扣左右解,前扣上下解
2015-12-03
頂樓上的,32個贊!