Function overloading: how to keep the same definition (body) and only change the parameters?
函数重载:如何保持相同的定义(体)和改变参数?
Function overloading permits one function-name to define multiple functions. Function overloading enables program-design simple.
函数重载允许一个函数名定义多个函数,函数重载使程序设计简单化。
Function overloading and operator overloading are two such fluffy things - there are many OO languages that don't support those 2 features.
函数重载和运算符重载的两种松软的东西——有许多面向对象的语言不支持这2种特征。
To understand function overloading, we must understand how to define a set of overloaded functions and how the compiler decides which function to use for a given call.
要理解函数重载,必须理解如何定义一组重载函数和编译器如何决定对某一调用使用哪个函数。
Ruby has no method overloading, and both Ruby and Rails have all sorts of conventions for passing varargs or block (function) parameters.
Ruby没有方法重载,而且Ruby和Rails都有着各种各样的惯例用来传递varargs或者block (function)参数。
To explain how scope interacts with overloading we will violate this practice and use a local function declaration.
但为了解释作用域与重载的相互作用,我们将违反上述规则而使用局部函数声明。
Will Hack language support function-overloading polymorphism?
将黑客语言支持函数重载多态性?
A vacuum micro-electronics pressure sensor with the function of overloading protection is brought forward.
提出了一种带过载保护功能的真空微电子压力传感器。
Overloading is when you make multiple versions of a function. The compiler figures out which function to call. Overloading does not take return type to differentiate overloaded method.
实现了一个函数的多个版本,编译器决定何时调用哪个函数。函数的返回值不作为区分重载函数的依据。
Similarly, function name overloading is a compile-time modification.
类似地,函数名的重载也是编译时的修改。
Therefore, the utility model adds the function of overloading protection.
因而,又增加了过载保护功能。
New automatic voltage regulator allows steady voltage output, with overloading protect function.
新型电压自动调节器保证了电压平稳输出,同时具有过载保护功能。
New automatic voltage regulator allows steady voltage output, with overloading protect function.
新型电压自动调节器保证了电压平稳输出,同时具有过载保护功能。
应用推荐