Use of polymorphism in object orient programming ? using Overloading and Overriding Concept
It is a basic feature in OOP?s Strategy of programming emulated or being followed by high-level languages .
In java it states using of one single interface with a set of actions that is like one name may be referred to different functionality .
For example in creating a java program we create method
void Amount( )
Amount (int xyz)
Now see carefully here in the small brackets of same method I have assigned three different?int amt, int xyz, int cat? parameters
(parameters are value data like that we assign in method)
this is called Overloading
And in case of same parameters it is said Overriding.
See In both cases method ?Amount()? is being more than one time and this what above definition say ?using of one single interface with a set of actions?.
For further details with examples concerning Encapsulation, Inheritance and Polymorphism chech undersigned URL.http://www.roseindia.net/java/learn-java-in-a-day/oops.shtml