HSBC Interview Question

Explain and write code for polymorphism