重载的类成员通过它们的唯一签名来进行区分,签名包含成员的名称及其每个形参的数据类型。
Overloaded class members are distinguished by their unique signatures, which are comprised of the name of the member and the data type of each of its formal parameters.
求值的表达式的数据类型通常应与为相应形参定义的数据类型相匹配,并且在任何情况下,该表达式值都必须可转换为此形参类型。
The data type of the evaluated expression should typically match the data type defined for the corresponding parameter, and in any case it must be convertible to the parameter type.
应用推荐