public class Locomotive
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
intPower |
private int |
intWheelCount |
private java.lang.String |
strColor |
Constructor and Description |
---|
Locomotive(int intPower,
int intWheelNum,
java.lang.String strColor) |
Modifier and Type | Method and Description |
---|---|
void |
showColor()
Shows color.
|
void |
showPower()
Shows power.
|
void |
showWheelCount()
Shows wheel count.
|
private int intPower
private int intWheelCount
private java.lang.String strColor