Try OpenEdge Now
skip to main content
Object-oriented Programming
Overloaded Method and Constructor Calling Scenarios
 

Overloaded Method and Constructor Calling Scenarios

To disambiguate calls to overloaded methods and constructors, ABL handles scenarios that go beyond basic differences in the number, mode, and data types of parameters in order to determine a match. For example, some parameter data types, such as temp-table and object types, can involve complex matching scenarios that are not resolved until run time, or can require resolving the best of several matching scenarios at compile time.
* Parameters differing only by mode
* Parameter data types differing only by extent
* Parameters matching widened data types
* Matching dynamic and static temp-table or ProDataset parameters
* Object reference parameters matching a class hierarchy or interface
* Matching the Unknown value (?) to parameters
* Matching values of unknown data types to parameters