framework methods and attributes added

This commit is contained in:
Fennel Kora 2024-04-13 22:56:32 -04:00
parent a8acb3aca9
commit 2dbaf79393

View file

@ -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() {
}
}