Afterpay interview question

When do you use inheritance?