Cognizant Interview Question

It was on the Basic OOps concepts