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 / manoj gharat

it will throw compile error because of same parameter's
data type in second overloaded function.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is an interface and what is an abstract class? Please, expand by examples of using both. Explain why?

788


Why do we use the “using” statement?

766


Please explain what is immutability, what is it for and how is it codified?

752


Explain how to stop a thread?

798


Do you know what is linq?

818


What tools is used to develop .NET applications?

815


Can a dll be changed to an exe?

816


What is multiThreading in .NET?

804


What is .net assembly?

790


What is misl?

810


How will you load an assembly which is not referenced by current assembly?

753


Explain me how does linq work?

765


Explain the difference between public and static modifiers?

833


What is 'Common Type System' (CTS) in .NET?

871


What is cyclomatic complexity and why is it important?

1937