The Expression Handler (similar to the Java language), employs a technique known as method overloading. This refers to the situation where there are several methods defined (variants of the same method) with the same name but have different parameters. The Connect CDC Expression Handler is able to distinguish that each variant is unique, even though the method name is the same, by using each variant's unique set of parameters, which includes the type of each parameter.
The following two examples show overloaded methods in the set of built-in methods:
Example 1:
|
|
Example 2:
|
|
|
In both examples the methods are overloaded because the method is the same, but the set of input parameters is different.