Which two statements about the overloading feature of packages are true? (Choose two)

Which two statements about the overloading feature of packages are true? (Choose two)

Which two statements about the overloading feature of packages are true? (Choose two)

A.
Only local or packaged subprograms can be overloaded.

B.
Overloading allows different functions with the same name that differ only in their return types.

C.
Overloading allows different subprograms with the same number, type and order of parameters.

D.
Overloading allows different subprograms with the same name and same number or type of parameters.

E.
Overloading allows different subprograms with the same name, but different in either number, type or order of parameters.

Explanation:
A Only local or packaged subprograms, or type methods, can be overloaded. You cannot overload standalone subprograms
E The Subprograms within the package must have formal parameters that differ in number, data type, or the order of parameters.
Incorrect Answers
B You cannot overload two functions with the same name that differ only in their return data type.
C & D The Subprograms within the package must have formal parameters that differ in number, data type, or the order of parameters.



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Leo Yu

Leo Yu

what does mean local subprogram? I think local subprogram is the stored subprogram.

Moshe

Moshe

cheap nhl jerseys free shipping Kansas City Chiefs Jersey wholesale mlb jerseys paypal