"隱式初始化" (CRType oImp = oCopied;) 和 "顯式初始化" (CRType oExp(oCopied);) 在它們都呼叫 CRType 的 "複製建構函式" 方面是等效的。複製建構函式的簽名是 CRType::CRType(const CRType& aroCopied)。當物件按值傳遞給某個函式時,也會呼叫相同的複製建構函式。
CRType oImp = oCopied;
CRType oExp(oCopied);
CRType
CRType::CRType(const CRType& aroCopied)
有關複製建構函式的更多資訊(包括互動式示例)