Capgemini interview question

Explain oops comcepts wrt java