Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 authentication methods in .net?

1002


What is difference between .net core and .net standard?

882


What are the features of dot net?

1061


What's typical about a windows process in regards to memory allocation in .net?

1066


How com+ related to the dna architecture?

1064


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

1074


Do you know what is the difference between an abstract class and an interface?

967


What is deferred execution vs. Immediate execution in linq?

1000


Differences between namespace, class, assembly?

984


Can a dll be changed to an exe?

1086


What are the important components of .net?

967


What is operator overloading in .net?

1012


Explain boxing and unboxing in .net.

955


Explain me what is a design pattern and what is it for?

1028


Elements of CAS

2152