Capgemini Engineering Interview Question

oops concept in programming languages