Infosys interview question

Define inheritance with real world example