Dell Technologies Interview Question

Explain inheritance with different types.