Examveda

Where should we place catch block of the derived class in a try-catch block?

A. Before the catch block of Base class

B. After the catch block of Base class

C. Anywhere in the sequence of catch blocks

D. After all the catch blocks

Answer: Option A


Join The Discussion

Related Questions on Exception Handling in C plus plus

What is exception handling in C++?

A. A method to handle errors during runtime

B. A method to handle errors during compile time

C. A method to handle errors during linking

D. A method to handle errors during execution