Manifestations of Polymorphism

Zhou Airu · Journal of Changchun Post and Telecommunication Institute · 2005

Polymorphism is a main feature of achieving software code-reuse in object-oriented programming. It means that same expression units in a program can have many different semantemes and evoke different morphas. Polymorphism includes data referencing and sharing, program matching and linking and code resuing etc. The combination of polymorphism and class inheritance has a very strong ability for expressing. It greatly improves software reusability and extendability. This article uses C+ + programs as examples to discuss all kinds of manifestations of polymorphism: data polymorphism, function polymorphism, overriding polymorphism and dynamic binding, which may serve as a good reference in the teaching process of object-oriented programming design.

Read the paper · More papers on PaperTik