BNY interview question

Describe inheritance, preferably with an example.