HSBC interview question

Explain and write code for polymorphism