Vehicles:
package JC;
public class Vehicles {
/*public String brand;
public String color;
public Vehicles(String brand, String color) {
this.brand = brand;
this.color = color;
}*/
private String brand;
private String color;
public Vehicles(String brand, String color) {
this.brand = brand;
this.color = color;
}
public void run(){
System.out.println(this.color+"的"+this.brand+"已经开动了");
}
public void showInfo(){
System.out.println("商标:"+this.brand+",颜色