摘要:
/** * 抽象汽车类 */ public abstract class Vehicle { protected Road road; //为汽车设置行驶的马路 public void setRoad(Road road) { this.road = road; } //抽象行驶方法 public 阅读全文
posted @ 2024-10-11 17:14
为20岁努力
阅读(2)
评论(0)
推荐(0)
摘要:
Main.java package org.example;public class Main { public static void main(String[] args) { StudentID stu1,stu2; stu1=StudentID.getStudentID(); stu2=St 阅读全文
posted @ 2024-10-08 19:14
为20岁努力
阅读(3)
评论(0)
推荐(0)