Polymorphism two lines definition?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Kunal VaishyaRank #990 · 2K reputationPosted Jul 10, 2012, 3:43 AM EDT
Definition:
In programming languages, polymorphism means that some code or operations or objects behave differently in different contexts.
Kunal VaishyaRank #990 · 2K reputationPosted Jul 10, 2012, 3:52 AM EDT
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;
}
}
Nattudurai EswaramurthyRank #5,536 · 296 reputationPosted Jul 10, 2012, 4:00 AM EDT