Infosys interview question

oops and dbms questions basics