I recently saw a nerd meme in Facebook. It gives me so many thought with respect to polymorphism. polymorphism

Can you see polymorhpism on the second code? So what could be advantages by doing so?