PIT Solutions interview question

OOPS concept in Java programming