Can anyone can explain with example for polymorphism?

the book says : polymorphism allows an object reference variable or an object pointer to reference ojects of different types, and to call the correct member function, depending upon the type of object being referenced.

I am still confused. Thank you in advance.
Topic archived. No new replies allowed.