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
Explain the difference between asp.net and asp?
What is the difference between boxing and unboxing?
What makes .net core cross platform?
What is the concept of inheritance in .net?
What does .net stand for?
How do you turn off cookies for one page in your site? Give an example.
What are the new 2.0 features useful for?
Explain what is the difference between a class and an object?
What is value type and refernce type in .net?
What are the advantages of .net?
How does the generational garbage collector in the .net clr manage object lifetime? What is non-deterministic finalization?
What is .net assembly?
What do you mean by web service?
Difference between abstract class and interface in .net?
Is the COM architecture same as .Net architecture? What is the difference between them (if at all there is)?