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

Explain the difference between asp.net and asp?

1153


What is the difference between boxing and unboxing?

976


What makes .net core cross platform?

999


What is the concept of inheritance in .net?

1170


What does .net stand for?

1021


How do you turn off cookies for one page in your site? Give an example.

957


What are the new 2.0 features useful for?

1206


Explain what is the difference between a class and an object?

1254


What is value type and refernce type in .net?

1070


What are the advantages of .net?

1010


How does the generational garbage collector in the .net clr manage object lifetime? What is non-deterministic finalization?

1004


What is .net assembly?

1061


What do you mean by web service?

1309


Difference between abstract class and interface in .net?

1088


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

2011