IndiGo interview question

Polymorphism and its types. How do you implement it