新手啊- -大神在哪里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/05/07 02:10:09
新手啊- -大神在哪里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 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