public class Car extends java.lang.Object implements java.io.Serializable
| Constructor and Description |
|---|
Car(int x,
int y,
int width)
Constructs a car.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.awt.Graphics2D g2)
Draws the car.
|
java.lang.String |
toString() |
public Car(int x, int y, int width)
x - the left of the bounding rectangley - the top of the bounding rectanglewidth - the width of the bounding rectangle