Cognizant interview question

Basic concepts of oops