Empower interview question

write a example for polymorphic code?