polymorphism two lines definition?
polymorphism two lines definition?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nattudurai EswaramurthyPosted Jul 10, 2012, 8:00 AM
Kunal VaishyaPosted Jul 10, 2012, 7:52 AM
same name of procedure or function with different parameter
class Mathclass
{
private int Add(int a , int b)
{
return a+b;
}
private int Add(int a , int b,int c)
{
return a+b+c;
}
private int Add(int a , int b,int c,int d)
{
return a+b+c+d;
}
}
Kunal VaishyaPosted Jul 10, 2012, 7:43 AM
Definition:
In programming languages, polymorphism means that some code or operations or objects behave differently in different contexts.