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 different types of memory in .net?
What is Complex Class in .NET?
What do the terms “boxing” and “unboxing” mean?
What is value type and refernce type in .net?
What are the authentication methods in .net?
Is .net core free?
What are code contracts?
Is the COM architecture same as .Net architecture? What is the difference between them (if at all there is)?
What is the need of OLE-automation?
What is iis? Have you used it?
Describe session handling in a webform, how does it work and what are the limitations?
What's the problem with .net generics?
what is machine key error in .NET how can we solve it?
What relationship is between a process, application domain, and application?
What is the difference between task and thread in .net?