Vidyalelo
Computer Science · Q444

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 444

Q444

If a class object is thrown with a throw statement, then a subsequent catch block has a usable match if the type of the catch argument is_________

A.
a parent class of the thrown class
Answer
B.
a child class of the thrown class
C.
either (a) or (b)
D.
neither (a) nor (b)

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board