polymorphism in c++

polymorphism means one name,mutiple forms. it allows us to have than one function with the same in a program. it also allows overloading of operators so that an operation can exhibit different behaviours in different instances.

polymorphism is another important oop concept.polymorphism ,a greek term, means the ability to take more than on form. an operation may exhibit different behaviours in different instance.the behaviour depends upon the types of data used in the operation. for example. consider the operation of addition. for two numbers ,the operation will generate a sum.if the operands are strings,then the operation would produce a third string by concatenation .the process of making an operator to exhibit different behaviours in different instances is known as operator overloading.

A single function name can be used to handle different number and different types of

arguments. Single function name can be use to perform different types of tasks is known

as function overloading



Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post