求解...
Car []CarForRent={new PassengerCar("奥迪",300,5), Truck("雪铁龙",240,15),new Pika("金龙",200,5,2)};
如果 PassengerCar和Truck都是抽象类的方法,这句话怎么改才能正确啊?
Car []CarForRent={new PassengerCar("奥迪",300,5), Truck("雪铁龙",240,15),new Pika("金龙",200,5,2)};
如果 PassengerCar和Truck都是抽象类的方法,这句话怎么改才能正确啊?
2015-08-04
举报