Polymorphism is made by two words "poly" and "morphs".Polymorphism means ability to take more than one form "Many Forms Of Data".The behaviour depends upon the types of data used in operations.
#include class A { public:void aa() { cout << "Hello..."; } }; class B : public A { public:void bb() { cout <<"Hello C++..."; } }; void main() { B b = B(); b.bb(); }
output:
Hello C++...