Which among the following is true for class exceptions?
(a) Only base class can give rise to exceptions
(b) Only derived class can give rise to exceptions
(c) Either base class or derived class may produce exceptions
(d) Both base class and derived class may produce exceptions
The question was posed to me in a job interview.
I would like to ask this question from Catching Class Types topic in chapter Exception Handling & Static Class Members of Object Oriented Programming