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 managed code in .NET?
Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component
What does cli do?
Explain the difference between vb and vb.net?
What is "common language runtime" (clr) in .net?
Explain attributes in dot net?
One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?
What is the procedure to add assemly to gac to make it shared one?
What are the types of jit?
What are situations when you register .NET assembly in GAC ?
Explain the .net framework overview?
What is deferred execution vs. Immediate execution in linq?
Explain how to stop a thread?
How to implement CAS in .Net?
How ccw (com callable wrapper) and rcw (runtime callable wrappers) works?