Infosys interview question

What is inheritance? (OOP)