Capgemini interview question

asked me about java oops concepts