Capgemini Interview Question

they asked About oops concepts in java