Cognizant Interview Question

Encapsulation , inheritance and other oops concepts