An expression that is calling an overloaded method or property does not find an exact match to the types of arguments that are passed.
正在调用重载方法或属性的表达式找不到与传递的参数类型完全匹配的参数。
Now that you are convinced that the simple overridden add() method works, the next step is to implement the overloaded add() method that takes an index as well as an element, as shown in Listing 15
现在,您已经确信这个简单的重写过的add()方法可以正常工作,下一步是实现重载的 add() 方法,可以获取索引以及元素,如清单15 所示
These methods are almost always overloaded with an int/TimeUnit pair, indicating how long the method should wait before bailing out and returning control to the program.
这些方法几乎总是包含一个int/TimeUnit 对,指示这些方法应该等待多长时间才释放控制权并将其返回给程序。
For example, if I have a method called draw (String STR), an overloaded version can have the following form: draw (String STR, int I).
例如,如果有一个名为draw (Stringstr)的方法,那么重载的方法可以有以下形式:draw (String str,inti)。
An overloaded form of the method is one way to work around this issue.
回避此问题的一种方法是使用该方法的重载形式。
The following example shows a method that USES default parameters, and the overloaded methods that provide an equivalent functionality.
下列范例显示使用预设参数的方法,以及提供对等功能的方法多载。
The following example shows a method that USES default parameters, and the overloaded methods that provide an equivalent functionality.
下列范例显示使用预设参数的方法,以及提供对等功能的方法多载。
应用推荐