用户管理高级版

This commit is contained in:
2024-10-29 09:17:12 +08:00
parent 761fcb4905
commit 87f3d76415
5 changed files with 53 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
package chapter4.object;
class Student {
private String name;
private int age;
public Student(String name, int age) {
this.name = name;
this.age = age;
}
public String toString() {
return "Student {name=" + name + ", age=" + age + "}";
}
}
public class Test {
}