[Solved] What is a real-world polymorphism example?


Think of a car, you know how to drive a car, but a gas powered car operates differntly then an electric car. On both car you know how to make it accelerate, but on a gas based car when you hit the gas peddel you the car burn gas, but on an electric car it does not do the same thing, even though you are doing the exact same action (aka sending the same message). So with polymorphism, you know how to send a message, but you don’t care how the engin of the object does it.

solved What is a real-world polymorphism example?