Page 1318 - AP Computer Science A, 7th edition
P. 1318

18. (B) The Inventory class is responsible for maintaining the list of all cars on the lot. Therefore methods like addCar, removeCar, and displayAllCars must be the responsibility of this class. The Car class should contain the setColor, getPrice, and displayCar methods, since all these pertain to the attributes of a given Car.


































































































   1316   1317   1318   1319   1320