IBM Interview Question

oops java concepts