In C++, polymorphism allows us to reuse code by defining a single function that may be used for different purposes. We can also make operators polymorphic and use them to mix strings as well as integers. This saves time and makes the program more efficient.
Polymorphism, in simple terms, is the ability of a message to be displayed in multiple formats. A real-life example of polymorphism is when two people have distinct characteristics at the same time. At the same time, he is a father, a spouse, and an employee.
Compile-time and run-time polymorphism are the two types of polymorphism in C++. Compile-time polymorphism is achieved by function and operator overloading.
Polymorphism permits us to carry out the same activity in multiple ways. Polymorphism, in other terms, allows you to specify a single interface with various implementations. The words "poly" and "morphs" both imply "many," therefore it means "many forms."
Learner's Ratings
4.3
Overall Rating
67%
17%
6%
6%
4%
Reviews
P
Prabhat Yadav
5
Superb and amazing 😍🤩 enjoyable experience.
A
arjama dutta
4
The course was very informative. and helpful. A few more exercises and less grammatical error on the notes could have made the course even better..
D
Deep Kumar Biswas
5
I love so much. I am grateful for making such an amazing site for all the common people. It has been very helpful to me. I can learn a lot from it. Thank you so much for creating such a site.Thank you
Share a personalized message with your friends.