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

1.Created class Machine containing methods public abstract void doWor… #1741

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Khrestina
Copy link

…k() and public abstract void stopWork().

2.Created classes Truck, Bulldozer, and Excavator that will inherit from Machine. 3.In those classes overrided doWork().Overrided stopWork() as well. In the MainApp class created a Machine array with Truck, Bulldozer, and Excavator and call methods doWork() and stopWork() in a loop.

…k() and public abstract void stopWork().

2.Created classes Truck, Bulldozer, and Excavator that will inherit from Machine.
3.In those classes overrided doWork().Overrided stopWork() as well.
In the MainApp class created a Machine array with Truck, Bulldozer, and Excavator and call methods doWork() and stopWork() in a loop.
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