Skip to content

Commit 2b1c92a

Browse files
committed
fixed ai comments to pr
1 parent db405e0 commit 2b1c92a

File tree

7 files changed

+5
-16
lines changed

7 files changed

+5
-16
lines changed

.DS_Store

0 Bytes
Binary file not shown.

src/.DS_Store

0 Bytes
Binary file not shown.
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package core.basesyntax;
2-
32
public class Bulldozer extends Machine {
43
@Override
54
public void doWork() {
65
System.out.println("Bulldozer started working");
76
}
8-
97
@Override
108
public void stopWork() {
119
System.out.println("Bulldozer stopped working");
1210
}
13-
}
11+
}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package core.basesyntax;
2-
32
public class Excavator extends Machine {
43
@Override
54
public void doWork() {
65
System.out.println("Excavator started working");
76
}
8-
97
@Override
108
public void stopWork() {
119
System.out.println("Excavator stopped working");
1210
}
13-
}
11+
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package core.basesyntax;
2-
32
public abstract class Machine {
43
public abstract void doWork();
54

65
public abstract void stopWork();
7-
}
6+
}
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
package core.basesyntax;
2-
32
public class MainApp {
43
public static void main(String[] args) {
54
Machine truck = new Truck();
@@ -10,10 +9,7 @@ public static void main(String[] args) {
109

1110
for (Machine machine : machines) {
1211
machine.doWork();
13-
}
14-
15-
for (Machine machine : machines) {
1612
machine.stopWork();
1713
}
1814
}
19-
}
15+
}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package core.basesyntax;
2-
32
public class Truck extends Machine {
43
@Override
54
public void doWork() {
65
System.out.println("Truck started working");
76
}
8-
97
@Override
108
public void stopWork() {
119
System.out.println("Truck stopped working");
1210
}
13-
}
11+
}

0 commit comments

Comments
 (0)