🔰polymorphism

same method name, different callers.

polymorphism means "same method name, different callers".

dog.speak()    // caller: dog
cat.speak()    // caller: cat

function overloading vs. polymorphism

Last updated