This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Java in General and the fly likes Polymorphism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Polymorphism" Watch "Polymorphism" New topic
Author

Polymorphism

Luiz Pereira
Greenhorn

Joined: Mar 18, 2004
Posts: 6
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.
Kedar Dravid
Ranch Hand

Joined: May 28, 2004
Posts: 333
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
Luiz Pereira
Greenhorn

Joined: Mar 18, 2004
Posts: 6
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.
 
Don't get me started about those stupid light bulbs.
 
subject: Polymorphism