Capgemini Interview Question

They asked basic oops concepts.