Skip to content

Commit

Permalink
Implement changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima committed Sep 30, 2024
1 parent 657f3fc commit 55822b7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/core/basesyntax/Bulldozer.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ public class Bulldozer extends Machine {
public void doWork() {
System.out.println("Bulldozer started its work.");
}

public void stopWork() {
System.out.println("Bulldozer has stopped working.");
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/core/basesyntax/Excavator.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ public class Excavator extends Machine {
public void doWork() {
System.out.println("Excavator started its work.");
}

public void stopWork() {
System.out.println("Excavator has stopped working.");
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/core/basesyntax/Machine.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

public abstract class Machine {
public abstract void doWork();

public abstract void stopWork();
}
1 change: 1 addition & 0 deletions src/main/java/core/basesyntax/Truck.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public class Truck extends Machine {
public void doWork() {
System.out.println("Truck started its work.");
}

public void stopWork() {
System.out.println("Truck has stopped working.");
}
Expand Down

0 comments on commit 55822b7

Please sign in to comment.