home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_12 / 702.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  658KB  |  2550x3300
Labels: book | poster | reckoner
OCR: 702 Chapter Discovering C++ 12.4 C++ and OOP Polymorphism The second principle of Object Oriented Programming is polymorphism. The polymorphism can be interpreted as "many forms" When applied this indicates that the same prrd or symbol can have different meanings for ent types The parts of pol ymorphism that we will discuss in this section are over- loading function names overloading operators and templates. Polymorphism also present in C++ in other ways Function Name Overloading Two or more functi ions can have the same name We saw examples of this in the inv tem class where there were three constructors When function name verloaded, the different functions with that same name must have different parameter lists. During compilation at every function call, the compiler will inspect the num ...