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

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.



Leave a Reply 0

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