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
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply 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: 21
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: 4761
    
    7

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?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32712
    
    4
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: 21
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: 3041
    
    4

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: 21
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: 4761
    
    7

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Instance Method Overloading - Polymorphism
 
Similar Threads
Overriding Question - Why output is differnet?
garbage collection
question abt overloading frm Mock Test
overriding
Why Dynamic Method dispatch is called dynamic polymorphism?