Can 2 functions have same name & input parameters but
differ only by return datatype ?

Answers were Sorted based on User's Feedback



Can 2 functions have same name & input parameters but differ only by return datatype ?..

Answer / vasu

Yes, It is possible in the packages (packaged functions).
You can override the function. It works perfect.
But the same if you try on standalone this doesn't work.
Object must be unique.

Is This Answer Correct ?    8 Yes 2 No

Can 2 functions have same name & input parameters but differ only by return datatype ?..

Answer / kiran kumar

No.

Is This Answer Correct ?    4 Yes 0 No

Can 2 functions have same name & input parameters but differ only by return datatype ?..

Answer / matt mcpeak

You can create package with 2 functions that differ only by
return type, but anyone attempting to call the function
will get a PLS-00307 error (too many declarations of 'A'
match this call)

Is This Answer Correct ?    1 Yes 0 No

Can 2 functions have same name & input parameters but differ only by return datatype ?..

Answer / pr@$@d

Vasu Answer is perfect.

Is This Answer Correct ?    2 Yes 2 No

Can 2 functions have same name & input parameters but differ only by return datatype ?..

Answer / ginna

Yes. We can

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Oracle Apps Technical Interview Questions

FLEX FIELDS?

2 Answers  


what is the difference between credit memo and debit memo?...

2 Answers   Sony,


Tell me some interface tables on ordermangement.

1 Answers   Zensar,


List the various types of value set.

0 Answers  


sourcing in GL

1 Answers   Convergys,






What is oracle soa suite?

0 Answers  


What do you understand by a set of books?

0 Answers  


what is organization id

3 Answers  


link between po and ap modules

5 Answers   ERP Solutions,


What is profile and what is level of profile option and it's hierarchy

1 Answers   IBM,


What are the User PARAMETERS in the Reports?

6 Answers   Accenture, CTS,


How to send the e-mail notification in XML Pub Report?

2 Answers   Accenture, Oracle,


Categories
  • Oracle Apps Technical Interview Questions Oracle Apps Technical (547)
  • Oracle Apps Financial Interview Questions Oracle Apps Financial (793)
  • Oracle Apps Manufacturing Interview Questions Oracle Apps Manufacturing (53)
  • Oracle Apps HRMS Interview Questions Oracle Apps HRMS (169)
  • Oracle Apps CRM Interview Questions Oracle Apps CRM (9)
  • Oracle Apps SCM Interview Questions Oracle Apps SCM (141)
  • Oracle Install Base Interview Questions Oracle Install Base (62)
  • Oracle Service Contracts Interview Questions Oracle Service Contracts (101)
  • Oracle Apps AllOther Interview Questions Oracle Apps AllOther (114)