How can you overload a method?

Answers were Sorted based on User's Feedback



How can you overload a method?..

Answer / guest

Different parameter data types, different number of
parameters, different order of parameters

Is This Answer Correct ?    6 Yes 0 No

How can you overload a method?..

Answer / bala

Whenever The Method have a same name but differnt
parameters,we can do overloading...

Is This Answer Correct ?    2 Yes 0 No

How can you overload a method?..

Answer / shoaib

Whenever The Method have a same name but differnt
parameters like Different parameter data types, different
number of
parameters, different order of parameters ..
we can do overloading...

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Sharp Interview Questions

hi, I am a begineer to c sharp. I have written a code for finding out prime numbers. Can anyone identify what are the flaws in my code. Kindly donot complex the code or present logic because i am new to c sharp and just started learning programming language.Thanks in advance. class Program { static void Main(string[] args) { int a,b=1; a = int.Parse(Console.ReadLine()); c= int.Parse(Console.ReadLine()); if (a % b == 0 && a % 2 != 0 && a % a == 0) Console.WriteLine(a); else if (a % b == 0 && a % 2 == 0) Console.WriteLine(a%2); Console.WriteLine("Number is not PRIME"); Console.ReadLine(); } } }

2 Answers  


Can struct be static in c#?

0 Answers  


What are the types of comments in c#?

0 Answers  


what is the purpose of new keyword while creating an object?

3 Answers  


What is a static property. Give an example?

0 Answers  


What are properties in c#. Explain with an example?

0 Answers  


What is executenonquery c#?

0 Answers  


Where CANNOT Destructors be implemented ?

3 Answers  


What is difference between string and stringbuffer in c#?

0 Answers  


What is the Difference between class and abstract class?

2 Answers  


How can it prevents DLL Hell assembly versioning in .NET?

0 Answers   Siebel,


What is a derived class in c#?

0 Answers  


Categories