Skip to content

OOP Basic - #2621

Open
ShyshkaNazar wants to merge 18 commits into
mate-academy:masterfrom
ShyshkaNazar:master
Open

OOP Basic#2621
ShyshkaNazar wants to merge 18 commits into
mate-academy:masterfrom
ShyshkaNazar:master

Conversation

@ShyshkaNazar

Copy link
Copy Markdown

No description provided.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review Summary

Your solution meets all functional requirements correctly. The abstract Machine class, inheritance hierarchy with Truck, Bulldozer, and Excavator, polymorphic Machine[] array in MainApp, and overridden methods with English messages are all properly implemented. The only issues are minor style violations—redundant empty lines between declarations and missing trailing newlines at file endings—which are handled by the linter. The code compiles and runs correctly with all required functionality in place.


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

Important

Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

Comment on lines +2 to +4

public class Bulldozer extends Machine {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #1: redundant empty line after package declaration

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Please explain exactly what is wrong.

Comment on lines +2 to +4

public class Bulldozer extends Machine {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #1: redundant empty line after package declaration

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Please explain exactly what is wrong.

Comment on lines +2 to +4

public class Bulldozer extends Machine {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #1: redundant empty line after package declaration

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Please explain exactly what is wrong.

Comment on lines +1 to +8
package core.basesyntax;

public abstract class Machine {

public abstract void doWork();

public abstract void stopWork();
} No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #1: redundant empty lines appear after package declaration (line 2), after class declaration (line 4), and after method signature (line 6). Compare with the improved example in the checklist that has no empty lines after class declaration or method signature.

Comment on lines +1 to +8
package core.basesyntax;

public abstract class Machine {

public abstract void doWork();

public abstract void stopWork();
} No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #1: redundant empty lines appear after package declaration (line 2), after class declaration (line 4), and after method signature (line 6). Compare with the improved example in the checklist that has no empty lines after class declaration or method signature.

Comment on lines +1 to +8
package core.basesyntax;

public abstract class Machine {

public abstract void doWork();

public abstract void stopWork();
} No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #1: redundant empty line appears after package declaration (line 2), after class declaration (line 4), and between abstract methods (line 6). Compare with the improved example in the checklist that has no empty lines after class declaration or method signature.

Comment on lines +2 to +4

public class Truck extends Machine {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #1: redundant empty line after package declaration. Compare with the improved example in the checklist - no empty lines should appear after class declaration or method signature.

package core.basesyntax;

public class Truck extends Machine {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #1: redundant empty line after class declaration. The checklist shows this as a bad pattern that should be avoided.

Comment on lines +8 to +9
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #1: redundant empty line after method signature (line 6). The checklist specifically warns against empty lines after method signatures.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Please explain exactly what is wrong.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Please explain exactly what is wrong.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Please explain exactly what is wrong.

Comment on lines +2 to +4

public class Bulldozer extends Machine {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Please explain exactly what is wrong.

Comment on lines +2 to +4

public class Bulldozer extends Machine {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Please explain exactly what is wrong.

Comment on lines +2 to +4

public class Bulldozer extends Machine {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Please explain exactly what is wrong.

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