Infosys interview question

Technica interview on oops concepts