Capgemini interview question

OOPS concepts(Encapsulation, polymorphism)