diff --git a/src/main/java/core/basesyntax/Buldozer.java b/src/main/java/core/basesyntax/Buldozer.java index 28e7a6b5c..4f5a695a9 100644 --- a/src/main/java/core/basesyntax/Buldozer.java +++ b/src/main/java/core/basesyntax/Buldozer.java @@ -1,5 +1,4 @@ package core.basesyntax; - public class Buldozer extends Machine{ @Override public void doWork() { diff --git a/src/main/java/core/basesyntax/Excavator.java b/src/main/java/core/basesyntax/Excavator.java index c35fb9645..4b6e5cddc 100644 --- a/src/main/java/core/basesyntax/Excavator.java +++ b/src/main/java/core/basesyntax/Excavator.java @@ -1,5 +1,4 @@ package core.basesyntax; - public class Excavator extends Machine { @Override public void doWork() { diff --git a/src/main/java/core/basesyntax/Machine.java b/src/main/java/core/basesyntax/Machine.java index 6fc54f0ed..b14e783ce 100644 --- a/src/main/java/core/basesyntax/Machine.java +++ b/src/main/java/core/basesyntax/Machine.java @@ -1,5 +1,4 @@ package core.basesyntax; - public abstract class Machine { public abstract void doWork(); public abstract void stopwork(); diff --git a/src/main/java/core/basesyntax/MainApp.java b/src/main/java/core/basesyntax/MainApp.java index a222c555e..0cf25c175 100644 --- a/src/main/java/core/basesyntax/MainApp.java +++ b/src/main/java/core/basesyntax/MainApp.java @@ -1,10 +1,8 @@ package core.basesyntax; - public class MainApp { Truck truck = new Truck(); Buldozer buldozer = new Buldozer(); Excavator excavator = new Excavator(); - public void work() { Machine [] machine = new Machine[] {truck, buldozer, excavator}; for (int i = 0; i < machine.length; i++) { diff --git a/src/main/java/core/basesyntax/Truck.java b/src/main/java/core/basesyntax/Truck.java index 4c28dcf1f..b011f71e6 100644 --- a/src/main/java/core/basesyntax/Truck.java +++ b/src/main/java/core/basesyntax/Truck.java @@ -1,5 +1,4 @@ package core.basesyntax; - public class Truck extends Machine{ @Override public void doWork() {