Capgemini Interview Question

OO concepts, Addition of two numbers