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

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

1012


Who is using .net core?

970


What is the concept of inheritance in .net?

1152


When we use windows api in .net is it managed or unmanaged code?

1077


Tell me what is a “jagged array”?

1038


How do I spawn a thread?

954


Do you know what is linq?

1065


What do you mean by Driver Script?

1159


Explain different types of html, web and server controls.

997


object is physical and class is logical..here class is not occupying any memory as our definition of class but i got a question then the class where it stores if it is not occupying any memory....

2099


Explain what rare the types of jit and what is econo-jit?

1039


What is the difference between a debug and release build?

1260


Explain me what is .net web service?

1037


Explain security measures exist for .net remoting in system.runtime.remoting?

1029


What is "microsoft intermediate language" (msil)?

1034