Soligibility 1: Object-oriented polymorphism can be strictly divided into four categories: special polymorphism (specific polymorphism): heavy duty polymorphism (overload polymorphism), forced polymorphism: General polymorphism: including polymorphism, and parameters Polymorphism. Heavy duty polymorphism (overload polymorphism): operators from C . Forced polymorphism: mandatory type conversion, is a forced polymorphism.
Contains polymorphisms are polymorphic behaviors that are defined in different class members in different classes in the research class, mainly through virtual functions. Parameter polymorphism is associated with a class (class template), and the class is a template that can be parameterized, where the type involved in which the type involved must be instantiated with the type parameters. Thus, all kinds of various types of class templates have the same operation, while the type of operation object is different. Reference: A little feeling for C polymorphism (original: Guo Meng) http://www.frontfree.net/view/Article_619.html finishing 2: A class unit can be a package or subroutine, allowing the permitted operation Does not depend on a specific data type. For example, one is the SWAP function of the class, which can accept parameters of various data types such as Integer, Float, without having to write a SWAP for different data types. Using a class unit unit requires its specific data type, this process is called instantiation. If you use the SWAP function mentioned above, you want to process the data type to be processed. Reference: Generic http://all.163.com/it/school/apl/chapter11/index.htm sorting 3: Mode is a tool reference C template for implementing a genus mechanism (Template) (Original) http://www.frontfree.net/view/Article_541_page1.html finishing 4: 2004 Morning software designer test questions. In object-oriented technology, the class is a (parameter polymorphism) mechanism. A class The class is a characteristic abstraction of a set of classes, which emphasizes those parts of these classes and (specific types-independent), while referring to those parts of (specific types). (Transfer) Object-oriented technology first polymorphism (
Multi-state detailed: Tryagain_2001@163.com) http://blog.9cbs.net/upwaker/archive/2004/09/17/108400.aspx