Capgemini interview question

Oops concept Coding DBMS Ds