Omniwyse Interview Question

oops concepts ??