๐ฐpolymorphism
same method name, different callers.
Last updated
Was this helpful?
same method name, different callers.
Last updated
Was this helpful?
Was this helpful?
polymorphism means "same method name, different callers".
dog.speak() // caller: dog
cat.speak() // caller: cat
function overloading vs. polymorphism
function overloading๏ผsame function name, different parameter(s).
๏ผsame name, different callers.