Cognizant Interview Question

questions related to oops in java