1.

#include <iostream>using namespace std;class Base {};class Derived: public Base {};int main(){   Derived LFC;   try {       throw LFC;   }   catch(Base LFC) {        cout<<"Base Exception";   }   catch(Derived LFC) {        cout<<"Derived Exception";   }   return 0;}
15.Which of the following is true about the following program

A. 10
B. An exception
C. Error
D. An exception occurred 10
Answer» E.


Discussion

No Comment Found

Related MCQs