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

WHY FUCTION OVERLOADING DOSENOT RETURN A RETEN TYPE

Answer Posted / subhashish sen

I think the Question is wrong !!!!!The Question would have
been like this..

Why Function Overloading does not depend on the return type?

Ans : Function Overloading does not depend on the return
type but it depends on number, type and order of arguments
of function..

In this case Overloading Possible
-----------------------------------
Ex : int fun(int a,int b){}
int fun(int x,float y){}

In this case Overloading is not possible
---------------------------------------
int fun(int a,int b){}
float fun(int x,float y){}

The reason is..while invoking these function its not
necessary to get the return value always,means if you don't
get the return value it also works...But this wont be
possible for no,type or order of arguments..

If you need further clarification reply me....

Is This Answer Correct ?    12 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction in oop?

1080


How to call a non virtual function in the derived class by using base class pointer

6419


Explain the concepts involved in Object Oriented programming.

1142


What is new keyword in oops?

992


What is polymorphism and example?

976


what are the ways in which a constructors can be called?

2036


What is constructor overloading in oop?

1075


write a C++ program for booking using constructor and destructor.

2494


What is a function in oop?

1018


What is an interface in oop?

981


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2259


Why oops is important?

1026


is there any choice in opting subjects like 4 out of 7

2131


What is difference between oop and pop?

1102


What is polymorphism used for?

1013