Salesforce interview question

Explain OOPs concepts using a real-life example?