Skip to content

jv_fx_serhii_slobodianiuk_java_core_OOP_Basic

Notifications You must be signed in to change notification settings

serhii-slobodianiuk/jv-oop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jv-oop

  • Create class Machine containing methods public abstract void doWork() and public abstract void stopWork().
  • Create classes Truck, Bulldozer, and Excavator that will inherit from Machine.
  • In those classes override doWork(), so it will print a message that a certain machine started its work.
  • Override stopWork() as well. It should print messages that certain machines stopped working.
  • In the MainApp class create a Machine array with Truck, Bulldozer, and Excavator and call methods doWork() and stopWork() in a loop.

About

jv_fx_serhii_slobodianiuk_java_core_OOP_Basic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%