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
What is typical about a windows process in regards to memory allocation in .net?
What is the difference between asp.net & vb.net and explain architecture?
Tell us the difference between the while and for loop. Provide a .net syntax for both loops?
When should I use .net core?
What versions of .net are there?
What is Ajax? How it is related to your project?
What are the features of dot net?
Compare & contrast rich client (smart clients or windows-based) & browser-based web application
Tell us what is the native image generator?
What is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?
Describe the compilation process for .net code?
Is there built-in support for tracing?
Explain what is mutex?
One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?
What is data type and how many types of data types are in .NET ?