((passengerCar)car).getCarCapacity()不太懂啥意思
System.out.println(car.getCarNumber()+"\t"+car.getCarName()+"\t"+car.getCarRentMoney()
+"/天"+"\t"+"载人:"+((passengerCar)car).getCarCapacity()+"人");
System.out.println(car.getCarNumber()+"\t"+car.getCarName()+"\t"+car.getCarRentMoney()
+"/天"+"\t"+"载人:"+((passengerCar)car).getCarCapacity()+"人");
2016-07-11
举报