Go Back   Wiki NewForum | Latest Entertainment News > Career Forum & Tips > Tech Forum & Tutorial > Oracle Database, SQL, Application, Programming


Two functions with the same name in two units


Reply
Views: 2123  
Thread Tools Rate Thread
  #1  
Old 08-20-2010, 11:12 AM
bholas bholas is offline
Award Winner
 
Join Date: Apr 2010
Posts: 4,977
Default Two functions with the same name in two units

Q:

If you have two functions -- both with the same name -- defined in two units, how do you distinguish which is which? For example, let's say you have an unit called Unit1 and it has a function called functionA. You have another unit, called Unit2, and it's got a function called functionA which performs a different function than the functionA in Unit1.
A:

To access functionA in Unit1 type:

Unit1.functionA;

and to access functionA in Unit2 type:

Unit2.functionA;


Reply With Quote
Reply

Tags
programming tips

New topics in Oracle Database, SQL, Application, Programming





Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
WikiNewForum)