public class TrainCar
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
TrainCar.eType |
Modifier and Type | Field | Description |
---|---|---|
TrainCar.eType |
carType |
|
int |
identifier |
|
java.lang.String |
ownedBy |
Constructor | Description |
---|---|
TrainCar(TrainCar.eType type,
int id,
java.lang.String owner) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
java.lang.String |
toString() |
public TrainCar.eType carType
public int identifier
public java.lang.String ownedBy
public TrainCar(TrainCar.eType type, int id, java.lang.String owner)