Tuesday, 11 June 2024

PolyMorphism

 

Poly = many and Morph = change or form or behaviour(change as per situation)

the word polymorphism says many behaviors

objects or methods acts differently under different conditions 

So, polymorphism is the ability (in programming) to present the same interface for differing underlying forms (data types).


Polymorphism allow us to perform single action in different ways

example :- if ask person to go and speak something with family,friends,teacher,girlfirend


family :- nanna garu bagunnara

frinds :- emi ra jaffa emi chesthunnavu

teacher :- hi sir how r u sir.

girl firend :- hi darling how are u meet avuddam.

same person speak in different modulations based place, single person acts diffrent under different situations.

















No comments:

Post a Comment

Thanks for the contribution, our team will check and reply back if response required.