posted 15 years ago
polymorphism is just a term for that you can have a lot of forms for something:
Example:
if you have the classes: SomethingMobil, Car, Ferrari, Renault, Toyota, Truck, SomeTruckMark, AnotherTruckMark and so on, you want to say probably, that a truck and a car are kinds of SomethingMobil, also Toyota is a kind of SomethingMobil, but Toyota is also a kind of Car and so on. So you have a lot of forms of SomethingMobil and that thing describes the term polymorphism.
override is way to describe this behavior:
You make:
overloading is something else. It is just the way you can write the same methodname, but have a differend kind of parameters: