| Author |
compile time polymorphism
|
suavedeep kaur
Ranch Hand
Joined: Jun 02, 2008
Posts: 36
|
|
does compile time polymorphism occurs in java???
if so when and how???
|
Suavedeep kaur
SCJP
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32688
|
|
That is a good question. . .
I don't like the term compile-time polymorphism. You can use runtime binding (polymorphism) with instance methods. Static members and fields, if called, are bound to their declaring class at compile-time, but lots of people here post how much they get confused when that happens, so it is probably best to say there is no such thing as compile-time polymorphism in Java. But I am sure other people will have a different opinion.
Look at this FAQ, which is relevant.
|
 |
 |
|
|
subject: compile time polymorphism
|
|
|