新手啊- -大神在哪里public class Person {\x05int id;\x05int age = 20;\x05Person(int _id ,int _age){\x05id = _id;\x05age = _age;\x05}}public static void main(String[] args) {\x05\x05Person tom = new Person(1,25);\x05}

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 23:52:23
新手啊--大神在哪里publicclassPerson{\x05intid;\x05intage=20;\x05Person(int_id,int_age){\x05id=_id;\x05age=_a

新手啊- -大神在哪里public class Person {\x05int id;\x05int age = 20;\x05Person(int _id ,int _age){\x05id = _id;\x05age = _age;\x05}}public static void main(String[] args) {\x05\x05Person tom = new Person(1,25);\x05}
新手啊- -大神在哪里

public class Person {
\x05int id;
\x05int age = 20;


\x05Person(int _id ,int _age){
\x05id = _id;
\x05age = _age;
\x05}
}


public static void main(String[] args) {
\x05\x05Person tom = new Person(1,25);
\x05}

新手啊- -大神在哪里public class Person {\x05int id;\x05int age = 20;\x05Person(int _id ,int _age){\x05id = _id;\x05age = _age;\x05}}public static void main(String[] args) {\x05\x05Person tom = new Person(1,25);\x05}
构造器 少个public