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


Can we have a function Overloading with same number of
arguments but with different return types of function

Answers were Sorted based on User's Feedback



Can we have a function Overloading with same number of arguments but with different return types o..

Answer / anupam

No,writing no. of functions with the same name but
different argument is called as function overloading.
The arguments may be differ in nos,type etc.
The return type may or may not be same.

Is This Answer Correct ?    9 Yes 0 No

Can we have a function Overloading with same number of arguments but with different return types o..

Answer / abhilash s thachil

There is a catch in the question. We can have function overloading with same number of arguments with different return types. One step ahead, we can have function overloading with same number of arguments provided the type and order of the arguments are not same irrespective of return type.

Is This Answer Correct ?    6 Yes 0 No

Can we have a function Overloading with same number of arguments but with different return types o..

Answer / sandeep joshi

No its not possible.
Because in function overloading the return type is not play
any role.

Is This Answer Correct ?    6 Yes 3 No

Can we have a function Overloading with same number of arguments but with different return types o..

Answer / vikram shinde

function signature (name mangling) is done based on function
name and no. of parameter.we can't diff. by return type
because when function call there will be ambiguty.

Is This Answer Correct ?    5 Yes 2 No

Can we have a function Overloading with same number of arguments but with different return types o..

Answer / vivek

Generally no but.......... ADA(Language) supports it
..............Source Wikipedia search for polymorph ism

Is This Answer Correct ?    2 Yes 0 No

Can we have a function Overloading with same number of arguments but with different return types o..

Answer / deepika galankar

no . we can have same function name with arguments differ
in number,type and different order of data types . but for
function overloading compiler ignore return type.
so we can have funfions with same no of arguments differ in
sequence of data type irrrespective of return type ..

Is This Answer Correct ?    1 Yes 0 No

Can we have a function Overloading with same number of arguments but with different return types o..

Answer / ajay

Yes, it is possible here are the examples

create or replace function funbool(b varchar2)
return boolean
as
begin
If b is not null then
return true;
else
return false;
end if;
end;

create or replace function funbool(b varchar2)
return number
is
begin
if b is null then
Dbms_output.put_line( 'false');
else
Dbms_output.put_line( 'true');
end if;
Return b;
end;

Is This Answer Correct ?    1 Yes 4 No

Can we have a function Overloading with same number of arguments but with different return types o..

Answer / ajay

Yes

Is This Answer Correct ?    4 Yes 9 No

Post New Answer

More Databases AllOther Interview Questions

Integrity constraints means..? how many and what are they?

4 Answers   AZTEC,


if i want to display the name of students such that to which city they belong must have count greaer than two

0 Answers   Atos Origin,


If the master device is full, how do I make the master database bigger?

0 Answers  


What is relational database with example?

0 Answers  


What is a database call?

0 Answers  


When should you not use firebase?

0 Answers  


List various types of log-based recovery in DBMS.

0 Answers   Verifone,


what is cardinality

3 Answers   CSC,


What is Stored procedure ?

4 Answers   IBM, iGate, Inspira Technologies,


What does new grouping sets enables you to do?

0 Answers   ADITI,


Is it possible to update AS400 database record while reading it with no lock

1 Answers  


1.what are components of querystdio and report studio and cognoss connection? 2. how to use prompts in query studio? 3.what is lock and un lock objects? 4.how to test the re[ports in query studio? 5.how to use brust option and when? 6.what is the performance testing? 7.condition explorer whaen your using? 8.in impromptu how do you create cascading prompt? 9.diff between section and group? 10.types filters where you are using group filters and tabular filter? 11.tabular model, tabular references ,tabular set , tabular sql? 12.what is the use of multi[le packages? 13what types of problems arise when create a join? 14.how to provide package sequirety? 15.report server components? 16.how many kinds of quality subjects? 17.how do you specify the joins? 18.how would you maintain the relations in frame work manager? 19.what is usage of segments and how to provide it? 20.governer settings in frame work maneger? 21.how to create filter in frame work manager? 22diffrence between represention layer and physical layer? 23.how to create prompts in frame work manager? 24.what errors occured when verify the model? 25.how to publish package in net work or local system?

1 Answers   Wipro,


Categories