Capgemini interview question

OOPS Concepts