We may restrict the types of exception thrown from a function
- by placing the try block in the function itself
- by placing the try block in the main that invokes the function
- by adding a throw (type-list) to the function definition
- by adding an empty throw ( ) in the function header line
Answer:
Option c: by adding a throw (type-list) to the function definition
Explanation Here
0 Comments