-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
All requirements and tasks from README file are implemented #1486
base: master
Are you sure you want to change the base?
All requirements and tasks from README file are implemented #1486
Conversation
… 'doWork', 'stopWork' methods are override. 'Machine' array is created. Methods are called in a loop.
Machine truck = new Truck(); | ||
Machine excavator = new Excavator(); | ||
Machine bulldozer = new Bulldozer(); | ||
Machine [] machines = new Machine[] {truck, excavator, bulldozer}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There shouldn't be whitespace when declaring an array:
Machine[] machines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job 👏
package core.basesyntax; | ||
|
||
public class Bulldozer extends Machine { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm generally not a fan of an empty string after a class name. But I see that now many developers do this. So you can do it but do it in the same way in all classes.
No description provided.