Programming with Passion

Make the best out of everything.

Tuesday, 22 March 2016

Function polymorphism

Function polymorphism


Parameters can be passed into the function at the time of execution.These parameters can be of same or different data types.And also there can be different numbers of parameter. 

void add(int num1,int num2);
void add(int num1,float num2);
void add (int num1,int num2,int num3);

Here all functions have same name but they perform differently.This is called function polymorphism.

No comments:

Post a Comment