Cognizant interview question

About OOPS concept