We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bfa34f commit 5a82eebCopy full SHA for 5a82eeb
Engine.java
@@ -4,7 +4,7 @@ public enum Engine {
4
GAS("Gas"),
5
ELECTRO("Elektro");
6
7
- private String description;
+ private final String description;
8
9
Engine(String description) {
10
this.description = description;
Vehicle.java
@@ -1,9 +1,9 @@
1
public class Vehicle {
2
3
- private String make;
- private String model;
+ private final String make;
+ private final String model;
private double speedInKmh;
- private Engine engine;
+ private final Engine engine;
private static int numberOfVehicles;
public Vehicle(String make, String model, Engine engine) {
0 commit comments