Capgemini interview question

About oops concept and java