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


Please Help Members By Posting Answers For Below Questions

What are the different types of memory in .net?

829


What is Complex Class in .NET?

799


What do the terms “boxing” and “unboxing” mean?

738


What is value type and refernce type in .net?

832


What are the authentication methods in .net?

788


Is .net core free?

836


What are code contracts?

805


Is the COM architecture same as .Net architecture? What is the difference between them (if at all there is)?

1773


What is the need of OLE-automation?

858


What is iis? Have you used it?

758


Describe session handling in a webform, how does it work and what are the limitations?

802


What's the problem with .net generics?

759


what is machine key error in .NET how can we solve it?

2330


What relationship is between a process, application domain, and application?

775


What is the difference between task and thread in .net?

831