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 what are an object and a class?
What is assembly in .net?
Is .net is a language?
Tell us the difference between managed and unmanaged code?
Explain me why do we use msmq?
What are the improvements made in cas in .net 4.0?
Tell us the differences between an interface and an abstract class in .net?
How is .net able to support a lot of languages?
What is smart navigation in .net?
What is the difference between vb.net and vc#.net?
Why inheritance is important?
What are the namespace available in .net?
Give a brief introduction on side-by-side execution. Can two applications, one using private assembly and the other using the shared assembly be stated as side-by-side executables?
What is view state in .net?
What method do you use to explicitly kill a users session? How?