renamed SelfDrivingCar to Vehicle, main will be moved to external driving application

This commit is contained in:
Fennel Kora 2024-04-14 01:23:03 -04:00
parent d986baf0ab
commit b24f97e142

View file

@ -1,8 +1,6 @@
public class SelfDrivingCar {
public class Vehicle {
private int speed;
private double fuelLevel;
public static void main(String[] args) {
}
public void navigateRoute() {
@ -16,7 +14,7 @@ public class SelfDrivingCar {
return speed;
}
public int getFuelLevel() {
public double getFuelLevel() {
return fuelLevel;
}
@ -28,4 +26,9 @@ public class SelfDrivingCar {
public void changeDirection() {
}
public void applyBrakes() {
}
}