Juvare interview question

Explain inheritance in object-oriented programming?