Saved Bookmarks
| 1. |
How to handle error in the destructor?(a) throwing(b) terminate(c) both throwing & terminate(d) tryThis question was addressed to me in a national level competition.My question comes from Exceptions That Are Not Errors topic in chapter Derived Classes, Templates & Exception Handling in C++ of C++ |
|
Answer» CORRECT answer is (b) TERMINATE Best explanation: It will not THROW an exception from the destructor but it will the PROCESS by USING terminate() function. |
|