Cognizant Interview Question

java oops based questions on 2 nd round