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 are the authentication methods in .net?
What is difference between .net core and .net standard?
What are the features of dot net?
What's typical about a windows process in regards to memory allocation in .net?
How com+ related to the dna architecture?
What is 'Common Type System' (CTS) in .NET?
Do you know what is the difference between an abstract class and an interface?
What is deferred execution vs. Immediate execution in linq?
Differences between namespace, class, assembly?
Can a dll be changed to an exe?
What are the important components of .net?
What is operator overloading in .net?
Explain boxing and unboxing in .net.
Explain me what is a design pattern and what is it for?
Elements of CAS