What does polymorphism mean in C++?
Here we understand the concept of Polymorphism in C++ in detail.
What does polymorphism mean in C++ language?
It simply means "one name and multiple forms" or "giving different meaning to the same thing."
The concept of polymorphism is implemented using the overloaded functions and operators.
The overloaded functions are "selected" for invoking by matching arguments, both by type and number.
This information is known to the compiler at the compile time and therefore compiler is able to select appropriate function call at the compile time itself. This is called early binding or static binding or static linking.
It would be nice if appropriate member function could be selected while the program is running. This is known as runtime polymorphism.
C++ supports a mechanism known as virtual function to achieve runtime polymorphism.
What is polymorphism mean in C++
means "one name and multiple forms"
"giving different meaning to the same thing"
Concept of Polymorphism in C++ Language.
Techwriter at NewsandStory
Total 1060 views