Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
DmytroBorysenko2004 authored Oct 31, 2024
1 parent 2208d55 commit b211137
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions buldozer.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
class Bulldozer extends Machine {
public void doWork() {
System.out.println("The Buldozer started working.");
System.out.println("The Bulldozer started working.");
}

public void stopWork() {
System.out.println("The Buldozer stopped working.");
System.out.println("The Bulldozer stopped working.");
}
}

2 changes: 1 addition & 1 deletion main.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Main {
public static void main(String[] args) {
Machine[] machines = {new Truck(), new Buldozer(), new Excavator()};
Machine[] machines = {new Truck(), new Bulldozer(), new Excavator()};
for (int i = 0; i < machines.length; i++) {
machines[i].doWork();
machines[i].stopWork();
Expand Down

0 comments on commit b211137

Please sign in to comment.