John Deere interview question

Oop concept Java basics Programs