IBM interview question

Explain inheritance and polymorphism