Which of the following language include predefined overloaded subprograms? A : Ada B : Scala C : Java D : Pascal
Answers
Answered by
0
Answer:
java
mark as brainlist answer
Answered by
0
Java language includes predefined overloaded subprograms.
Explanation:
- An overloaded subprogram is a subprogram that has the same name as another subprogram in the same referencing environment.
- Java includes predefined overloaded subprograms. For example, many classes in Java have overloaded constructors. Because each version of an overloaded subprogram has a unique parameter, the compiler can disambiguate occurrences of calls to them by the different type parameters.
- Every version of an overloaded subprogram must have a unique protocol, which means it must be different from the others in the number, order, or types of its parameters, and if it is a function then its return type.
Similar questions
India Languages,
1 month ago
Sociology,
1 month ago
Hindi,
3 months ago
Chemistry,
10 months ago
Math,
10 months ago