Can you create a simple polymorphic program using CSolutionY
Can you create a simple polymorphic program using C++?
Solution
Yes we can create a simpole polymorphic programm using c++
1.Polymorphism:it means that capability to allocate constrantive items to approach with frequent interface.(or) implementing the similar code which acts in discretely in discrete conditions.
2.particularly this polymorphism is to permit the objecs like variables and functions .
it mentions to utilize the overloading methods and more over this polymorphism associates with the objects.
Ex;consider a \'+\' operator in c++
1. 8+5 ......integer addition
2.8.23+9.0 ....floating point addition
