IBM Interview Question

oops concepts in java