Runtime Polymorphism in Java with Examples
Polymorphism is a technique wherein a single action can be performed in two different ways. The term polymorphism is derived from two Greek words, ” poly” and “morphs,” which mean many and forms, respectively. check more on UPGRAD website here In real-time, polymorphism can be explained as the different roles played by a single person. For instance, a man can be a son, husband, father, etc. In other words, a person has many features and implements each one of them according to the situation.