Ooplecture 2
Ooplecture 2
• The word polymorphism means having many forms. In simple words, we can
define polymorphism as the ability of a message to be displayed in more than
one form. For example, A person at the same time can have different
characteristics. Like a man at the same time is a father, a husband, an employee.
So the same person posses different behavior in different situations. This is
called polymorphism.
Real World Example --
Suppose if you are in a
classroom at that time you
behave like a student, when
you are in the market at that
time you behave like
a customer when you at your
home at that time you behave
like a son or daughter, Here
one person present in
different-different behaviors.
Thank you