Skip to content

Conversation

@Dima8899
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.

Review Summary

Excellent work on this task! Your solution correctly implements the class hierarchy and demonstrates a solid understanding of polymorphism. All functional requirements are met, so I am approving your submission.

I have one minor suggestion for future improvement. In several of your output messages, you've used it's when the possessive its would be grammatically correct. For example, in Bulldozer.java, the message should be "Bulldozer started its work". This is a common mistake, but correcting it will make your output more professional.

This doesn't affect the logic of your program at all. Keep up the great work!


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

Footnotes

  1. Rate AI review example

public class Bulldozer extends Machine {
@Override
public void doWork() {
System.out.println("Bulldozer started it's work");

Choose a reason for hiding this comment

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

There's a small grammatical error here. it's is a contraction for "it is". The possessive form is its. The message should be "Bulldozer started its work".

public class Excavator extends Machine {
@Override
public void doWork() {
System.out.println("Excavator started it's work");

Choose a reason for hiding this comment

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

There's a small grammatical error in the message. it's is a contraction for "it is". The possessive form you're looking for is its.


@Override
public void stopWork() {
System.out.println("Excavator stopped it's working");

Choose a reason for hiding this comment

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

Similar to the doWork method, the possessive pronoun here should be its, not it's.

public class Truck extends Machine {
@Override
public void doWork() {
System.out.println("Truck started it's work");

Choose a reason for hiding this comment

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

There's a small grammatical error here. it's is a contraction for "it is". The possessive form is its. The message should be "Truck started its work".

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