aspose file tools*
The moose likes Beginning Java and the fly likes Overloading and overriding are part of Polymorphism ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Overloading and overriding are part of Polymorphism ?" Watch "Overloading and overriding are part of Polymorphism ?" New topic
Author

Overloading and overriding are part of Polymorphism ?

Aashish Vyas
Greenhorn

Joined: May 09, 2012
Posts: 14

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

Joined: Oct 13, 2005
Posts: 39784
    
  28
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

Joined: Mar 17, 2011
Posts: 8186
    
  23

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


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Aashish Vyas
Greenhorn

Joined: May 09, 2012
Posts: 14


Ok now I got that..

Thanks..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Overloading and overriding are part of Polymorphism ?