Fundamental Programming Errors & Exceptions Beginner
Q In a C++ try block that can throw a Derived exception (where Derived inherits from Base), what is the correct order of catch blocks?
  • A catch(Derived&) before catch(Base&), with catch(...) last
  • B catch(...) first
  • C catch(Base&) before catch(Derived&)
  • D Order does not matter
Leave a Comment