aspose file tools*
The moose likes Java in General and the fly likes Instance Method Overloading - Polymorphism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Instance Method Overloading - Polymorphism" Watch "Instance Method Overloading - Polymorphism" New topic
Author

Instance Method Overloading - Polymorphism

sr shashidhar
Greenhorn

Joined: Jan 17, 2013
Posts: 27
Hi frndz,

My Question is "When we are overloading instance methods" under which polymorphism it comes...? either it comes under Run-Time Polymorphism or Compile-Time polymorphism...?


Example :






either it comes under Run-Time Polymorphism or Compile-Time polymorphism...?



thanks in advacnce
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8250
    
  23

sr shashidhar wrote:either it comes under Run-Time Polymorphism or Compile-Time polymorphism...?

1. Please EaseUp (←click). Using bold is akin to shouting; and nobody likes being shouted at.

2. IMO, there is no such thing as "compile-time" polymorphism - in fact, the term itself is an oxymoron - but, to answer your question, it is often used to describe method overloading (real polymorphism refers to method overriding).

Winston

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

Joined: Oct 13, 2005
Posts: 39884
    
  28
I hope it is not too late to welcome you to the Ranch
You ought to use the code button; I shall see if I can amend your post with the code button so you can see how much better the code looks
sr shashidhar
Greenhorn

Joined: Jan 17, 2013
Posts: 27
Campbell Ritchie wrote:I hope it is not too late to welcome you to the Ranch
You ought to use the code button; I shall see if I can amend your post with the code button so you can see how much better the code looks


Thanks Campbell...

frnds can anyone help me about my doubt with above code...
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4181
    
  21

Winston Gutkowski wrote:2. IMO, there is no such thing as "compile-time" polymorphism - in fact, the term itself is an oxymoron - but, to answer your question, it is often used to describe method overloading (real polymorphism refers to method overriding).

Hi sr shashidhar, did you not see this part of Winston's reply? Or do you have further questions?


Steve
sr shashidhar
Greenhorn

Joined: Jan 17, 2013
Posts: 27
yes sir,

can anyone tel me what is the difference in the following statements. As i heard its dynamic dispatch, but what makes difference, where and when it is used...?

.


thanks in advance...

Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8250
    
  23

sr shashidhar wrote:yes sir,
can anyone tel me what is the difference in the following statements.

My apologies, sr. I deleted your duplicate posts, but I have a feeling that you updated the last of them while I was doing so. If so, please edit the remaining one again.

Winston
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Instance Method Overloading - Polymorphism