Empower Interview Question

write a example for polymorphic code?