PTC Interview Question

oops concept and spring related question