Capgemini Engineering interview question

oops concept in programming languages