EY Interview Question

OOPS concepts questions about inheritance