Accenture interview question

To explain my codes and basic OOPs concepts