ATMECS Interview Question

Write code for polymorphism.