06 2021 档案

摘要:package txt; public class em { String name; int moth; public em() { super(); } public em(String name, int moth) { super(); this.name = name; this.moth 阅读全文
posted @ 2021-06-17 21:16 &+-wbs 阅读(34) 评论(0) 推荐(0) 编辑
摘要:2、设计2个类,要求如下:(知识点:类的继承 方法的覆 盖) [必做题] 2.1 定义一个汽车类Vehicle, 2.1.1 属性包括:汽车品牌brand(String类型)、颜色clr (String类型)和速度speed(duble类型)。 2.1.2 至少提供一个有参的构造方法(要求品牌和颜色 阅读全文
posted @ 2021-06-10 23:55 &+-wbs 阅读(78) 评论(0) 推荐(0) 编辑