Capgemini interview question

they asked About oops concepts in java