Infosys interview question

Object vs. Class