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.
update checklist.md reference (#1715)
1 parent
60029bc
commit 57f404c
Showing
3 changed files
with
12 additions
and
12 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,9 +1,9 @@ | ||
# jv-oop | ||
|
||
- Create class Machine containing methods `public abstract void doWork()` and `public abstract void stopWork()`. | ||
- Create classes `Truck`, `Bulldozer`, `Excavator` that will inherit from `Machine`. | ||
- In those classes override `doWork()`, so it will print message that certain machine started its work. | ||
- Override `stopWork()` as well. It should print messages that certain machine stopped its work. | ||
- In `MainApp` class create `Machine` array with `Truck`, `Bulldozer` and `Excavator` and call methods `doWork()` and `stopWork()` in a loop. | ||
- Create classes `Truck`, `Bulldozer`, and `Excavator` that will inherit from `Machine`. | ||
- In those classes override `doWork()`, so it will print a message that a certain machine started its work. | ||
- Override `stopWork()` as well. It should print messages that certain machines stopped working. | ||
- In the `MainApp` class create a `Machine` array with `Truck`, `Bulldozer`, and `Excavator` and call methods `doWork()` and `stopWork()` in a loop. | ||
|
||
#### [Try to avoid these common mistakes, while solving task](https://mate-academy.github.io/jv-program-common-mistakes/java-core/oop/oop) | ||
#### [Try to avoid these common mistakes, while solving task](./checklist.md) |
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