Modifier and Type | Field and Description |
---|---|
private Car |
car |
private int |
miles |
private TirePosition |
position |
Modifier | Constructor and Description |
---|---|
protected |
Tire() |
|
Tire(Car car,
TirePosition position) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Car |
getCar() |
int |
getMiles() |
TirePosition |
getPosition() |
int |
hashCode() |
void |
setMiles(int miles) |
private Car car
private TirePosition position
private int miles
protected Tire()
public Tire(Car car, TirePosition position)
public TirePosition getPosition()
public Car getCar()
public int getMiles()
public void setMiles(int miles)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.