i have 2 functions, int add(int a,int b);
double add(int a,int b); does this code implement
overloading? if not what will be the error?

Answer Posted / manoj gharat

it will throw compile error because of same parameter's
data type in second overloaded function.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between abstract class and interface in .net?

815


What is data type and how many types of data types are in .NET ?

766


What are an object and a class?

783


What is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?

736


What is misl?

834


Is there any thread in our .net programs?

857


why you wouldn't want to write into it even if you could

819


Does .net supports destructors concept?

1857


What is lazy initialization?

826


What is stored procedure ? how we use it in .NET ?

877


What is STA in .NET?

867


Difference between dispose and finallize method?

932


Describe the compilation process for .net code?

862


What is the difference between response.write & response.output.write?

826


What is an assembly? What are the different types of assemblies?

880