Cognizant interview question

Related to Object Oriented Programming