Posted by : Admin
Sunday, 13 October 2019
Polymorphism:
Polymorphism means one name many forms. One function behaves different forms. In other words, "Many forms of a single object is called Polymorphism."Real World Example of Polymorphism:
Example-1:
A Teacher behaves to student.
A Teacher behaves to his/her seniors.
Here teacher is an object but attitude is different in different situation.
Example-2:
Person behaves SON in house at the same time that person behaves EMPLOYEE in office.
Example-3:
Your mobile phone, one name but many forms
As phone
As camera
As mp3 player
As radio
Best WordPress hosting services 2020 in the table below. Logo Plan Price/ month Features Support View Full Review Basic $2.95/mo. 1...

Post a Comment