Dell Technologies interview question

Explain inheritance with different types.