在 C++ 中解释函数重载(overloading)与函数重写/覆盖(overriding),并区分两者。
In the context of the C++ programming language, explain function overloading and overriding. Distinguish between them.
题目类型: 技术面试题
这是一道技术面试题,常见于澳洲IT公司面试中。
难度: medium
分类: problem-solving
标签: Overloading, Overriding, C++
目标公司: IBM
参考答案摘要
Function Overloading Modifying the signature, i.e., the number of parameters, the data type of the parameters, and the return type, allows for multiple definitions of the function. Function Overriding...
本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。