Research on Polymorphic Dada Structure for Object-Oriented C++ Language
Qingqing Wei · Journal of Hechi University · 2009
Polymorphism is a main mechanism of the object-oriented programming.Polymorphic dada structure is an expressive way of the polymorphism.This paper analyzes the mechanism of combining inheritance with dynamic binding.Features of virtual function to support dynamic polymorphism and the abstract class are discussed and the elementary method to construct the polymorphic data structure is proposed.Two examples of polymorphic array and polymorphic queue are presented to show the realization of polymorphic dada structure in the object-oriented programming C++ language.