Medpace Interview Question

What is inheritance and when is it useful?