Infosys interview question

What is inheritance?