Morningstar Interview Question

What is inheritance explain with example