Explain precondition and postcondition to a member function in the context of C++ programming language.
Explain precondition and postcondition to a member function in the context of C++ programming language.
题目类型: 技术面试题
这是一道技术面试题,常见于澳洲IT公司面试中。
难度: easy
标签: interviewbit, wipro, company-specific
目标公司: Wipro
参考答案摘要
A precondition is a condition that must be met before a member function may be called. If preconditions are never false, a class is appropriately used. If a precondition fails to hold, the following f...
本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。