Click here to Skip to main content
14,667,169 members
Rate this:
Please Sign up or sign in to vote.
See more:
How can I achieve runtime polymorphism
Posted
Updated 28-Feb-14 15:07pm
v2
Comments
   
Non-runtime polymorphism is a myth.
—SA

Rate this:
Please Sign up or sign in to vote.

Solution 1

You use inheritance and overridden virtual functions. Good luck with your school test/assignment.
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

You can refer the below link for more understanding.

run-time polymorphism VS compile-time polymorphism[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100