Infosys interview question

related to database ,oops concept