My scenario is that I want to use the same named 2 functions with the same type of input parameters. Will it be possibile to have this with different return types ? Thank you.
(comments are locked)
|
No. To overload a function, you must change the "signature" of the function, which is the defined by the position and datatype of the inputs. The return value is not part of the signature, so it can't be used for overloading. "Oracle Database 11g PL/SQL Programming," by Michael McLaughlin, page 318
(comments are locked)
|
The answer is NO. Since we cannot overload the functions based on its return types.
(comments are locked)
|