Polymorphism
- Polymorphism is a special mechanism that can be used
with inheritance concept.
- Meaning that relation of "is type of " parent
and child classes must be created first before applying this
mechanism. Without inheritance, you CANNOT apply the
polymorphism.
- In a short definition, "POLYMORPHISM" means
"having many different forms."
-- By implementing polymorphism, an object reference of parent
class can be used as a reference to point to the
objects of child classes. The object reference has already
become polymorphic because it has already been provided with
many forms of objects to be referred or pointed.

Prev |
Home
| Next
|
|