// car.cc: the car class for the CSC 270 simulation example // -- J. Clarke, March-June 1996 #include "car.h" #include "world.h" carClass::carClass (void) // The number of litres required is a property of a car, so it // belongs in this class. It is also something the car "knows" // when it arrives, so it is calculated here, in the constructor. { localLitresNeeded = numLitres (); };