Tech Mahindra Interview Question

What is inheritance in OOP. This was asked in technical interview.