public class User {
public static void main(String[] args) {
Vehile car;
car=new Vehile();
car.speedUp(20);
car.setPower(40);
System.out.println("速度:"+car.getSpeed());
car.speedDown(33);
System.out.println("速度:"+car.getPower());
}
}
public static void main(String[] args) {
Vehile car;
car=new Vehile();
car.speedUp(20);
car.setPower(40);
System.out.println("速度:"+car.getSpeed());
car.speedDown(33);
System.out.println("速度:"+car.getPower());
}
}