Why You Should Use Accessors, Not Public Fields
2) You can change your internal representation without changing interface
// Now using metric units (kph, not mph)
public void setSpeed(double newSpeed) {
setSpeedInKPH = convert(newSpeed);
}
public void setSpeedInKPH(double newSpeed) {
speedInKPH = newSpeed;
}