S&P Global Interview Question

Explain OOPS concepts and give real time examples for each