BNY interview question

Explain about inheritance in oops