How many ways we hide method in C#?
Can we hide method using method overloading?
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
ShankeyRank #972 · 2.1K reputationPosted Aug 19, 2010, 5:43 AM EDT
Hi pankaj dhake,
overloading is different from method hiding. You will get clear idea of what is overloading and what is Method hiding by reading following content:
"But do not forget to mark my answer as accepted if it helped you"
Overloading
What is Method Overloading?
C# allows you to define different versions of a method in class, and the compiler will automatically select the most appropriate one based on the parameters supplied.
following example have Overloaded method Add(). public class AddingNumbers { public int Add(int a, int b) { return a+b; } public int Add(int a, int b, int c) { return a+b+c; } }Method Hiding