Cognizant interview question

Basic oops questions were asked