A simple demonstration of Polymorphism in C++