Maxtrino interview question

Explain OOPs concepts with inheritance