If class A is derived from class B, and a virtual function in class B throws an exception, then the overridden version of that function in class A must
A) not throw any exceptions
B) have an exception specification that is a subset of the exception specification of the base class B
C) not throw any exceptions that the function in class B might throw
D) all of the above
Correct Answer:
Verified
Q37: Which of the following function declaration correctly
Q38: The throw statement is enclosed in
A) a
Q39: Which of the following is not a
Q40: If the following function throws an unhandled
Q41: Which of the following would be a
Q42: If a function will possibly throw an
Q43: A class that is used for exceptions
Q45: You should use exception handling
A) in all
Q46: Which of the following code fragments are
Q47: Which type of exception is thrown if
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents