TechAhead interview question

Oops concept and dbms question