public class Vehicle
extends java.lang.Object
| Constructor and Description |
|---|
Vehicle()
Instantiates a new Vehicle.
|
Vehicle(java.lang.String make,
java.lang.String model,
java.lang.String color,
int year)
Instantiates a new Vehicle.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getColor()
Gets color.
|
java.lang.String |
getMake() |
java.lang.String |
getModel()
Gets model.
|
int |
getYear()
Gets year.
|
void |
setColor(java.lang.String color)
Sets color.
|
void |
setMake(java.lang.String make)
Sets make.
|
void |
setModel(java.lang.String model)
Sets model.
|
void |
setYear(int year)
Sets year.
|
public Vehicle()
public Vehicle(java.lang.String make,
java.lang.String model,
java.lang.String color,
int year)
make - the makemodel - the modelcolor - the coloryear - the yearpublic java.lang.String getMake()
public void setMake(java.lang.String make)
make - the makepublic java.lang.String getModel()
public void setModel(java.lang.String model)
model - the modelpublic java.lang.String getColor()
public void setColor(java.lang.String color)
color - the colorpublic int getYear()
public void setYear(int year)
year - the year