• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Overloading and overriding are part of Polymorphism ?

 
Aashish Vyas
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Basically I want to know in which way we can use polymorphism in java. I mean how many ways ?

can we use in --

1 ) Constructor overloading ?
2 ) method overloading ?
3 ) method overriding ?

Please reply ..
 
Campbell Ritchie
Sheriff
Posts: 48382
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

You will find many people have asked this sort of question if you search, particularly here. Or you can click the other underlined word in this post.
As far as I am concerned, polymorphism means overriding overriding and overriding.
 
Winston Gutkowski
Bartender
Pie
Posts: 10091
56
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:As far as I am concerned, polymorphism means overriding overriding and overriding.

@Aashish: I totally agree with Campbell here; however it's possible that you've heard "static polymorphism" used in reference to method overloading.
As far as I'm concerned the term is an oxymoron, and the author deserves to have nasty things done to his private parts.

Winston
 
Aashish Vyas
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Ok now I got that..

Thanks..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic