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 / suren
That will throw an error coz in the second function the
return type is double and result will be in double. to
rectify it we need to convert the second function result as
double, then the code executes correctly.
| Is This Answer Correct ? | 1 Yes | 10 No |
Post New Answer View All Answers
Please tell us what is the difference between override and overload in a method?
Differences between namespace, class, assembly?
What is an assembly? What are the different types of assemblies?
which method do you use to redirect the user to another page without performing a round trip to the client? How?
Is .net is a language?
What is alias ? Is it used in .Net ?
What is the difference between boxing and unboxing?
What is assemblies in .net?
Please explain what garbage collection is and how it works. Provide a code example of how you can enforce garbage collection in .net?
What is .net3.0 and .net3.5?
What does .net stand for?
What data providers available in .net to connect to database?
Why SOAP is required?
Please explain what is reflection and what is it for?
can any one tel me the complete Testing Procedure of any one simple PROJECT i mean either web/windows based application?