answersLogoWhite

0

subprogram overloading is a process of using the same (function) name for many subprograms. the overloaded subprograms may differ in the number, type or order of its its parameters.java, c++ and c# provides the feature of subprogram overloading .

when an overloaded subprogram is called,java or c++ compiler first checks the subprogram name and then the number and type of parameters are analyzed to decide which version of the overloaded subprogram must be chosen for execution. this process is also known as 'polymorphism'.

the return type of a subprogram has no affect on subprogram overloading whereas it is used to differentiate between the calls in ADA. hence,two overloaded functions in ADA can have the same parameter profile with different return values.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Which is an example of a PLSQL subprogram?

A PL/SQL subprogram is equivalent to a procedure or function in conventional procedural programming.


What is the linker?

linker is a subprogram,its written by one user and one source code file will exit. linker is a subprogram,its written by one user and one source code file will exit.


Why function in VHDL?

A function is a subprogram written in VHDL. This program can be called and used in other programs.


Does a subprogram always return a value to the program or subprogram that calls it?

No. In some languages PROCEDUREs don't return a value, FUNCTIONs do; in C (and derivatives) return-type void means no return value. Example:void Hello (const char *msg) { puts (msg); }


When was The Overloaded Man created?

The Overloaded Man was created in 1967.


When was The Overloaded Ark created?

The Overloaded Ark was created in 1953.


Can static method can be overloaded or not?

Yes, a static method may be overloaded.


How many pages does The Overloaded Man have?

The Overloaded Man has 158 pages.


What is generic subprogram?

A generic subprogram is a type of subprogram in programming that allows for the definition of algorithms or functions that can operate on different data types without being rewritten for each type. This is achieved through the use of type parameters, enabling the same code to handle various data types in a type-safe manner. Generic subprograms promote code reusability and reduce redundancy, making it easier to maintain and extend programs. They are commonly used in languages that support generics, such as C++, Java, and C#.


What type of failure might blow the fuses?

A dead short to ground or an overloaded circuit.A dead short to ground or an overloaded circuit.


Is it possible to override overloaded methods why?

Yes. Overloaded methods are also Java methods and all Java methods can be overridden.


Which subprogram do you use to display the source code of a stored procedure when using dbms debug?

To display the source code of a stored procedure when using DBMS_DEBUG in Oracle, you can use the DBMS_DEBUG.GET_SOURCE subprogram. This procedure retrieves the source code for a specified procedure or package and allows you to view its contents. You typically need to specify the name of the procedure and the necessary parameters to access the desired code.