Which among the following is true?
(a) Only the base class catch blocks are important
(b) Only the derived class catch blocks are important
(c) Both the base and derived class catch blocks are important
(d) If base and derived classes both produce exceptions, program doesn’t run
I got this question in homework.
Asked question is from Catching Class Types topic in portion Exception Handling & Static Class Members of Object Oriented Programming