+ 9
What is Polymorphism
5 Answers
+ 11
Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object. Any Java object that can pass more than one IS-A test is considered to be polymorphic.
+ 2
David Kariuki you are right!
Polymorphism allows you to invoke derived class methods through a base class reference during runtime.
+ 1
polymorphism means that single method can have number of different implementations .
polymorphism is fundamental concept of oop it provides following functions:
1.it allows you to invoke methods of base class throught derived class references during runtime.
2.it has ability for classes to provode different implementations of methods that are called throught the same name.
and there are two types of polymorphism
1.Compiletime Polymorphism(Overloading)
2.Runtime Polymorphism(Overriding)
+ 1
1 no Bhai.