摘要:
View Code //第七题import java.util.*;class Vehicle{ protected int speed, kind; protected String color; Scanner cin=new Scanner(System.in); public Vehicle(int a){ //不带参数的构造方法 kind=a; System.out.println("构造完成"); } public void setSpeed(int a){ speed=a; } public vo... 阅读全文
posted @ 2011-09-26 21:00 huhuuu 阅读(1058) 评论(0) 推荐(0) 编辑