Packages

p

o1

carsim

package carsim

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Package Members

  1. package gui

Type Members

  1. 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).

Value Members

  1. object CarTest extends App

    A small program that uses the class Car.

    A small program that uses the class Car. Students are free to extend and customize it.

Ungrouped