Capgemini interview question

what is inheritance with example