1 changed files with 0 additions and 11 deletions
@ -1,11 +0,0 @@ |
|||
public class Main { |
|||
public static void main(String[] args) { |
|||
// 实例化两个 Student 对象
|
|||
Student stu1 = new Student(2026001, "张三", 90.5); |
|||
Student stu2 = new Student(2026002, "李四", 88.0); |
|||
|
|||
// 调用 study() 方法
|
|||
stu1.study(); |
|||
stu2.study(); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue