This is a discussion on Overloading and polymorphism - Are they same within the C and C++ forums, part of the Programming Talk category; Hi All, Polymorphism is a certain item appearing in different forms or ways. That is making a function or operator ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Overloading and polymorphism - Are they same
Hi All,
Polymorphism is a certain item appearing in different forms or ways. That is making a function or operator to act in different forms. I wanted to know whether Overloading and polymorphism refer to same technology. If not what is the difference between the two? Regards, Allan |
|
|||
|
Overloading is a kind of Polymorphism. The first difference to state is in terms of syntax of appearance of overloaded functions and polymorphic functions. Overloaded functions have structure and calling method just like normal function calls. Polymorphic functions require the use of a dot operator.
|
![]() |
| Thread Tools | |
|
|