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

solved task #2170

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

solved task #2170

wants to merge 3 commits into from

Conversation

aniliashenko
Copy link

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Great work on implementing the Bulldozer class and the MainApp class! 👍 It looks like you've followed the checklist guidelines and provided the necessary functionality. Remember that informative messages and clean code formatting can always enhance readability and maintainability, but these are minor issues and don't warrant a change request. Keep up the good work!

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

@@ -0,0 +1,13 @@
package core.basesyntax;

public class Excavator extends Machine{

Choose a reason for hiding this comment

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

There should not be a redundant empty line after the class declaration. Please remove the empty line to improve code readability, adhering to the checklist item regarding redundant empty lines.

Comment on lines +5 to +6
public void doWork() {
System.out.println("Excavator started working.");

Choose a reason for hiding this comment

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

The message in the doWork method should be more informative. It should indicate that the 'Excavator' is working, not just started working. For example, 'Excavator is excavating.'

Comment on lines +10 to +11
public void stopWork() {
System.out.println("Excavator stopped working.");

Choose a reason for hiding this comment

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

Similarly, the message in the stopWork method should be more informative about the 'Excavator' stopping its work. For instance, 'Excavator has finished excavating.'

public class Truck extends Machine {
@Override
public void doWork() {
System.out.println("Truck started working.");

Choose a reason for hiding this comment

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

The message 'Truck started working.' is not very informative. It would be better to specify what kind of work the Truck is doing to make the message more informative, as per the checklist.


@Override
public void stopWork() {
System.out.println("Truck stopped working.");

Choose a reason for hiding this comment

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

Similarly to the doWork method, the message in stopWork should be more informative. Indicate what kind of work has been stopped by the Truck.

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.

2 participants