Will a catch statement catch a derived exception if it is looking for the base class?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Write a C++ Program to Generate Random Numbers between 0 and 100

1 Answers  


What is 'Copy Constructor' and when it is called?

1 Answers  


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

0 Answers  


What are the two shift operators and what are their functions?

0 Answers  


How can we access protected and private members of a class?

0 Answers  






State two differences between C and C++.

0 Answers   Hexaware,


Why seem interrupt handlers as member functions to be impossible?

1 Answers  


Why is polymorphism useful?

0 Answers  


What is meant by const_cast?

0 Answers  


What is abstraction c++?

0 Answers  


catch(exception &e) { . . . } Referring to the sample code above, which one of the following lines of code produces a written description of the type of exception that "e" refers to? a) cout << e.type(); b) cout << e.name(); c) cout << typeid(e).name(); d) cout << e.what(); e) cout << e;

2 Answers   Quark,


What is the difference between reference type and pointers.

4 Answers   HCL,


Categories