Genpact interview question

Write program to show OOPS example and basic DBMS.