这个数组里的元素为什么这么写,在哪节课学到过?是什么意思?能不能写的容易理解些?
car [ ] carForRent={new passengerCar(1,"奥迪A4",500,4),new passengerCar(2,"马自达6",400,4),
new pickUp(3,"皮卡雪6",450,4,2),new passengerCar(4," 金龙 ",800,20),
new trunk(5,"松花江",400,4),new trunk(6,"依维柯",1000,20)};
car [ ] carForRent={new passengerCar(1,"奥迪A4",500,4),new passengerCar(2,"马自达6",400,4),
new pickUp(3,"皮卡雪6",450,4,2),new passengerCar(4," 金龙 ",800,20),
new trunk(5,"松花江",400,4),new trunk(6,"依维柯",1000,20)};
2017-05-17
举报