Accenture Interview Question

To explain my codes and basic OOPs concepts