Simplify360 Interview Question

OOPs concepts in Java