Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Polymorphism  RSS feed

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!