What is Overloading of procedures ?

Answer Posted / jyothsna

2 or more procedures or functions are called overloaded when

a) They have the same names
b) Different no of formal parameters defined
c) Formal parameters differ in their datatypes/Subtypes and
not in the same family
d) They belong to same subprogram/package/PL SQL Block


They are not overloaded when

a) Any of the above points are not satisfied
b) RETURN datatype alone differs and not the formal
parameters

The main purpose of overloading procedures is that, when a
PL SQL block is found to do a same operation with different
inputs, we names them same and feed different parameters

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does a join table need a primary key?

715


The in operator may be used if you know the exact value you want to return for at least one of the columns.

739


what is the use of set statement in tsql? : Transact sql

749


what is the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba

770


What happens when a trigger is associated to a view?

686


Is vs as in pl sql?

684


What is rownum?

715


Differentiate between pl/sql and sql?

821


How do I remove all records from a table?

784


Why is sharding used?

740


How to run sql commands in sql*plus?

796


how to escape special characters in sql statements? : Sql dba

725


what are the differences between binary and varbinary? : Sql dba

729


How to start the command-line sql*plus?

757


What is meant by truncate in sql?

765