Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first try #1595

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

first try #1595

wants to merge 7 commits into from

Conversation

DenisBogusevich
Copy link

No description provided.

Copy link
Contributor

@liliia-ponomarenko liliia-ponomarenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! Let’s fix some minor mistakes

README.md Outdated
Comment on lines 3 to 7
- Create class core.basesyntax.Machine containing methods `public abstract void doWork()` and `public abstract void stopWork()`.
- Create classes `core.basesyntax.Truck`, `core.basesyntax.Bulldozer`, `core.basesyntax.Excavator` that will inherit from `core.basesyntax.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.
- In `MainApp` class create `core.basesyntax.Machine` array with `core.basesyntax.Truck`, `core.basesyntax.Bulldozer` and `core.basesyntax.Excavator` and call methods `doWork()` and `stopWork()` in a loop.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don’t need to change README file. Let’s revert the changes.

checklist.md Outdated
Comment on lines 26 to 27
message should indicate what type of `core.basesyntax.Machine` is working right now `core.basesyntax.Truck`, `core.basesyntax.Bulldozer` or `core.basesyntax.Excavator`.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same here


public class Bulldozer extends Machine {
public void doWork() {
System.out.println("core.basesyntax.Bulldozer started its work");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don’t use package names in messages. Let’s remove it everywhere

public void stopWork() {
System.out.println("core.basesyntax.Bulldozer stoped its work");
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant empty line

package core.basesyntax;

public class Excavator extends Machine {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant empty line

public class Truck extends Machine {

public void doWork() {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant empty line

public void stopWork() {
System.out.println("core.basesyntax.Truck stoped its work");
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant empty line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants