Computer Science, asked by ayini2638, 3 months ago

Which of the following language include predefined overloaded subprograms? A : Ada B : Scala C : Java D : Pascal

Answers

Answered by kalyan218
0

Answer:

java

mark as brainlist answer

Answered by rahul123437
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