framework methods and attributes added
This commit is contained in:
parent
a8acb3aca9
commit
2dbaf79393
1 changed files with 30 additions and 0 deletions
|
@ -0,0 +1,30 @@
|
||||||
|
public class SelfDrivingCar {
|
||||||
|
private int speed;
|
||||||
|
private int fuelLevel;
|
||||||
|
public static void main(String[] args) {
|
||||||
|
}
|
||||||
|
|
||||||
|
public void navigateRoute() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpeed(int newSpeed) {
|
||||||
|
speed = newSpeed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getSpeed() {
|
||||||
|
return speed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getFuelLevel() {
|
||||||
|
return fuelLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void updateFuelLevel() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void changeDirection() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue