Skip to content

konstde00/jv-oop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jv-oop

  • Create class Machine containing methods public abstract void doWork() and public abstract void stopWork().
  • Create classes Truck, Bulldozer, Excavator that will inherit from Machine.
  • In those classes override doWork(), so it will print message that certain machine started its work.
  • Override stopWork() as well. It should print messages that certain machine stopped its work.
  • In Main class create an object of each class.
  • Start work of all machines and then stop them.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%