Why would a programmer specify a base-class type as the type of a catch handler, then throw objects of derived-class types?

What will be an ideal response?

This is a nice way to catch related types of exceptions, if they can all be handled with the same logic.

Computer Science & Information Technology

You might also like to view...

A relative cell reference

A) contains both an absolute and a relative cell reference. B) indicates a cells relative location from the cell containing the formula; the reference changes when you copy the formula. C) occurs when a formula directly or indirectly refers to the cell containing the formula. D) indicates a cell's specific location and the reference does not change when you copy the formula.

Computer Science & Information Technology

$C$8 is an example of a(n) ________ cell reference

Fill in the blank(s) with correct word

Computer Science & Information Technology