DXC Technology interview question

Encapsulation, oops concepts, polymorphism, and project