We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f173003 commit 4eda61bCopy full SHA for 4eda61b
1 file changed
Rental.java
@@ -20,6 +20,15 @@ public void addAllVehicles(Vehicle... vehicles) {
20
}
21
22
23
+ public void transformAllTrucks() {
24
+ for (Vehicle c : vehicles) {
25
+ if (c instanceof Truck) {
26
+ Truck t = (Truck) c;
27
+ t.transform();
28
+ }
29
30
31
+
32
public void print() {
33
System.out.println(name);
34
System.out.println("Unsere Fahrzeuge: ");
0 commit comments