Question: 2 . Consider the following C + + skeletal program: class Big { int i; float f; void fun 1 ( ) throw int {
Consider the following C skeletal program:
class Big
int i;
float f; void fun throw int
try throw i;
throw f; catchfloat
class Small
int j;
float g; void fun throw float
try try
Big.fun;
throw j; throw g; catchint
catchfloat
In each of the four throw statements, where is the exception handled? Note that fun is called from fun in class Small.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
