Polymorphism in C++. 200413287 ManYan 200413283 WangHengXin. P in C++ 1.1. In programming languages, polymorphism means that some code or operations or objects behave differently in different contexts. For example, the + (plus) operator in C++:
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Polymorphism in C++
P in C++ 1.1
In programming languages, polymorphism means that some code or operations or objects behave differently in different contexts.
For example, the + (plus) operator in C++:
4 + 5 <-- integer addition
3.14 + 2.0 <-- floating point addition
s1 + "bar" <-- string concatenation!
In C++, that type of polymorphism is called overloading.
Typically, when the term polymorphism is used with C++, however, it refers to using virtual methods, which we'll discuss shortly.
What is polymorphism (English).2.1
What is polymorphism (Chinese).2.2
We study C++ difficulty at paradigm shift.If we can’t design classes.We just use other programmer’s classes.This is paradigm shift.
Especially,The MFC（or OWL or VCL）programmer.
When we use application framework.Do you know that What’s the connection in your code andframework?Where is the value of framework?Why the framework can use in our class types.When the programmer design framework.They don’t know our programmers will use their product.
n,You’ll get nothing in C++.