package carsim
Ordering
- Alphabetic
Visibility
- Public
- Protected
Type Members
- class Car extends AnyRef
The class
Car
represents virtual cars which can drive about on a surface.The class
Car
represents virtual cars which can drive about on a surface. A car has a fuel tank that contains gasoline, which is spent as the car moves but can be added using an appropriate method.Although some aspects of a car object are immutable (e.g., fuel consumption rate), some others change (e.g., location, fuel).