Cognizant interview question

Encapsulation , opps polymorphism inheritance