Q&A
Ask and answer questions to make information more available to wider audiences.
Angelo Alley @alleyangelo   07, Apr 2023 12:00 AM
Polymorphism
What is polymorphism in C++?
answers 2
 
Answer 1
Gunner Birdson @birdsongunner   08, Apr 2023 09:23 AM
There is 2 type of polymorphism:
1. Compile Time Polymorphism
* Function Overloading
* Operator Overloading
2. Run Time Polymorphism
* Function Overriding
* Virtual Function
 
Answer 2
Sadie Lynton @lyntonsadie   08, Apr 2023 09:20 AM
Polymorphism is known as many forms of the same thing. In simple terms, we can say that Polymorphism is the ability to display a member function in multiple forms depending on the type of object that calls them.
In other words, we can also say that a man can be an employee to someone, a son of someone, a father of someone, and a husband of someone; this is how polymorphism can be projected in real life.