Capgemini Interview Question

What is inheritance in OOP?