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...


what is function overloading..?

Answers were Sorted based on User's Feedback



what is function overloading..?..

Answer / pankaj kumar sharma

Function overloading takes place when a function is
overloaded with two or more tasks ie. same function is
having different behaviour.
It takes place when two functions have same name but
differs in argument list ie. may be the no of arg in both
fun are different or type of the arguments in argument list
are diff.

As return type of a func. does not take part in name
mangling so return type for overloaded functions may differ
or not.

eg: int fun(int arg1, int arg2)
char* fun(char* ptr1)

Is This Answer Correct ?    8 Yes 2 No

what is function overloading..?..

Answer / rabih

two functions with same but different signature

example let take function name test return int and take a
parameter of type int (int test(int x))

let take same function of name test with different
signature void test(int x) or int test(bool n) or
int test(int x,string y)

all these functions can written in same class without any
error this means same function name(test)
different signature is deffernet return type or different
paraemeter type

Is This Answer Correct ?    0 Yes 0 No

what is function overloading..?..

Answer / achal ubbott

Here i tell how function overloading works. The point is
name mangling. Each c++ compiler follows an algorithm
called Name Mangling algorithm. Its job is to create
different symbols for functions. The mangled name of the
function would depend upon number,type and order of
function arguments. You can see these mangled names in the
assembly code. But C does not mangle function Names.
Unfortunately there is no ISO standard for name mangling.
So most c++ compilers do that in a different way

Is This Answer Correct ?    1 Yes 2 No

what is function overloading..?..

Answer / anjana

FUNCTION OVER LOADING:
TWO OR MORE FUNCTIONS HAVING THE SAME NAME IS CALLED THEY ARE SAID TO BE FUNCTION OVER LOADING.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More OOPS Interview Questions

What is difference between polymorphism and inheritance?

0 Answers  


what is an instance of a class

5 Answers  


what is the 3 types of system development life cycle

1 Answers  


How do you achieve polymorphism?

0 Answers  


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

0 Answers   NIIT, SRA,


i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage??????

3 Answers   Infosys,


What is polymorphism ? Explain with examples

8 Answers   Ness Technologies,


officer say me - i am offered to a smoking , then what can you say

0 Answers  


There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?

2 Answers  


Can abstract class have normal methods?

0 Answers  


Which is better struts or spring?

0 Answers  


what is function over loading?

5 Answers  


Categories