InterviewSolution
Saved Bookmarks
| 1. |
If catching of base class exception is done before derived class in C++ ________________(a) It gives compile time error(b) It doesn’t run the program(c) It may give warning but not error(d) It always gives compile time error |
|
Answer» Correct choice is (c) It may give warning but not error Easy explanation - The compiler in C++ doesn’t identify this as compile time error and allows the execution of the program. But, the compiler may give some warning related to the catch block sequence or code unreachable. |
|