public class TrainCar
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TrainCar.eType |
Modifier and Type | Field and Description |
---|---|
TrainCar.eType |
carType |
int |
identifier |
java.lang.String |
ownedBy |
Constructor and Description |
---|
TrainCar(TrainCar.eType type,
int id,
java.lang.String owner) |
Modifier and Type | Method and 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)