
overloading
词源
由前缀over-(超过)和load(负荷)组成,最早记录于19世纪,最初用于描述机械和电气系统的超负荷状态。
noun
❶ 指在编程中,同一个函数名或操作符根据参数类型或数量的不同而有不同的实现方式。
“Method overloading allows multiple methods to have the same name with different parameters.”
(方法重载允许多个方法使用相同的名称但参数不同。)
“Operator overloading lets you redefine how operators work for user-defined types.”
(操作符重载允许你为自定义类型重新定义操作符的行为。)
❶ 在电气工程中,指电路或设备承受超过其设计容量的负荷。
“The transformer failed due to prolonged overloading.”
(变压器因长期过载而损坏。)
“Circuit breakers protect against overloading by interrupting the current.”
(断路器通过切断电流来防止过载。)
verb
❶ 给某物施加超过其处理能力的负荷或工作量。
“Don't overload the washing machine with too many clothes.”
(不要往洗衣机里塞太多衣服导致过载。)
“The truck was overloaded with construction materials.”
(卡车装载的建筑材料超载了。)
常见短语
operator overloading — 编程术语,指为自定义类型重新定义操作符(如+、-等)的功能。
“C++ supports operator overloading for custom classes.”
(C++支持为自定义类进行操作符重载。)
cognitive overload — 心理学概念,指信息量超过人脑处理能力导致的理解或记忆困难。
“Too many choices can cause cognitive overload in decision making.”
(选择过多可能导致决策时的认知过载。)