Tech Mahindra Interview Question

Explain OOP concepts with example?