Skip to content

Commit 0488f6b

Browse files
committed
add increment in solution
1 parent 932419a commit 0488f6b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Vehicle.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public class Vehicle {
88
public Vehicle(String make, String model) {
99
this.make = make;
1010
this.model = model;
11+
Vehicle.numberOfVehicles++;
1112
}
1213

1314
public String getMake() {

0 commit comments

Comments
 (0)