Infosys Interview Question

What is inheritance? (OOP)