Polymorphism
In the fundamental English language, Polymorphism means to exist in various states. A similar article or thing changing its state starting with one structure then onto the next is known as polymorphic.
A similar capacity or technique, being utilized diversely in various situations, can impeccably perform Polymorphism. It happens for the most part with base and inferred classes.
How does Polymorphism function?
A technique in the youngster class has a similar name as the strategies in the parent class, and they take a similar number of factors as boundaries. All things considered, the youngster class will acquire the strategies from the parent class and will supersede the technique as well. Implying that the compiler will execute the technique in the kid since it will be the primary spot it looks at while looking for the strategy when called.

0 Comments