3
Reply

Give an real life example of polymorphism ?

Md Sarfaraj

Md Sarfaraj

3y
8.3k
2
Reply

Give an real life example of polymorphism that explain polymorphism in a better way.

    A person at the same time can have different characteristic. Like a man at the same time is a father, a husband, an employee. So the same person posses different behavior in different. This is the real life example of polymorphism.

    Polymorphism meaning is ‘MANY’-formation.
    Polymorphism is Two types, That is

    1. Static Polymorphism
    2. Dynamic or RunTime Polymorphism.

    The main objective of the Polymorphism is
    Using existing objects, we should produce the different output or different Results. (Note: we can use or add new objects).

    In Real Life the Polymorphism Example
    is : Kitchen in our home. By using Kitchen we can produce the different foods(Like Tea, Coffee, Jucice, Breakfast, etc…) By reusing the kitchen setup we give or produce different results.
    Thanks for Reading!.— By Anto

    The word polymorphism means having many forms. … Real life example of polymorphism: A person at the same time can have different characteristic. Like a man at the same time is a father, a husband, an employee. So the same person posses different behavior in different situations.