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 a formatter in .net?
Is .net core installed?
How can I find out what the garbage collector is doing?
What is reflection and what is it for?
What is the difference between an abstract class and an interface?
Should I implement finalize on my class? Should I implement idisposable?
What is deferred execution vs. Immediate execution in linq?
Explain the .net framework overview?
How to get the number after decimal point in .net?
Explain dataset.acceptchanges and dataadapter.update methods in .net?
SAP Business One(this is intigrated tool of .net)
Describe the Managed Execution Process
Name the classes that are introduced in the system.numerics namespace.
What is RPC? What is the use of it?
Where does the gac exist ?