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 / dhakir hussain
it will throw an error because the function overloading is
acheived by
1) changing the number of parameters
2) changing the order of parameters of different datatypes
we can't acheive function overloading by changing the
return type
Is This Answer Correct ? | 26 Yes | 0 No |
Post New Answer View All Answers
What is garbage collection in .net? Explain the garbage collection process?
Explain asp.net?
What is the benefit of .net core?
Do you know what is lambda expressions in c#?
Explain what are possible implementations of distributed applications in .net?
What is Event - Delegate? clear syntax for writing a event delegate
What are pdbs?
Please explain when should you use .net web forms over asp.net mvc?
What is managed code and managed data in .net?
What is value type and refernce type in .net?
Tell us the difference between managed and unmanaged code?
I'm having some trouble with cas. How can I troubleshoot the problem?
What makes .net core cross platform?
Tell us the differences between an interface and an abstract class in .net?
Please explain what is a delegate?