Forums Register Login

Polymorphism

+Pie Number of slices to send: Send
I'm studing about override and overload. I found in books and papers diferent opinions about this subject.
Some authors consider override and overload as polymorphism, others consider olny override as polymorphism and overload as feature of OO.

Is overload one kind of polymorphism?

Thanks.
+Pie Number of slices to send: Send
I am not too sure about this, but I read this somewhere:

In Java,
dynamic polymorphism: Overriding
static polymorphism (if there is such athing in Java): Overloading
+Pie Number of slices to send: Send
I work with java too, the Katty's book for certification not consider overload as polymorphism, but, I read others book about java that consider.
World domination requires a hollowed out volcano with good submarine access. Tiny ads are optional.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1006 times.
Similar Threads
OverLoading Question
basic oo overriding question
runnable
Overriding
can a class or a java file have more than one "main "method?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:22:43.