generated from mate-academy/jv-homework-template
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replaced with the parent class in the main class and removed the empt…
…y lines
- Loading branch information
Nazar
committed
Jul 24, 2023
1 parent
e4e88cb
commit e269c77
Showing
5 changed files
with
3 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
package core.basesyntax; | ||
|
||
public class Bulldozer extends Machine { | ||
@Override | ||
public void doWork() { | ||
System.out.println("Bulldozer machine started its work"); | ||
} | ||
@Override | ||
public void stopWork() { | ||
|
||
System.out.println("Bulldozer machine stopped its work"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
package core.basesyntax; | ||
|
||
public class Excavator extends Machine { | ||
@Override | ||
public void doWork() { | ||
|
||
System.out.println("Excavator machine started its work"); | ||
} | ||
@Override | ||
public void stopWork() { | ||
|
||
System.out.println("Excavator machine stopped its work"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
package core.basesyntax; | ||
|
||
public abstract class Machine { | ||
public abstract void doWork(); | ||
public abstract void stopWork(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
package core.basesyntax; | ||
public class Truck extends Machine { | ||
|
||
@Override | ||
public void doWork() { | ||
|
||
System.out.println("Truck machine started its work"); | ||
} | ||
@Override | ||
public void stopWork() { | ||
|
||
System.out.println("Truck machine stopped its work"); | ||
} | ||
} |