Infosys interview question

Inheritance, agile methods, rest api question.