What is polymorphism exactly.I came to know that polymorphism only applies to overiding and polymorphism not applies to static and overloaded methods.What do you mean by this statement.
vvus bharadwaj wrote: polymorphism only applies to overiding and polymorphism not applies to static and overloaded methods.What do you mean by this statement.
Polymorphism comes in picture only when you do method overriding.
Overload is not overriding, so how will you implement polymorphism there ?
Because you can't override static method so how will you achieve polymorphism there ?
Tell the difficulties that i am difficult.
Tess Jacobs
Greenhorn
Joined: Feb 07, 2012
Posts: 22
posted
0
Polymorphism is the ability of an object to take on many forms.
Polymorphism allows a method call to have many possible resolutions.
Run time polymorphism can be implemented through overriding since method calls are resolved at run time.
Compile time polymorphism can be implemented through overloading since method calls are resolved at compile time.
Keshav Dussal
Greenhorn
Joined: Apr 01, 2012
Posts: 2
posted
0
Polymorphism in the context of object-oriented programming, is the ability to create a variable, a function, or an object that has more than one form.