Hour 13

1: What is the base class for all exceptions in the .NET Framework?
A1: System::Exception.
2: What is the namespace that provides diagnostic classes such as the Trace and Debug classes?
A2: System::Diagnostics.
3: When is the finally code block called?
A3: It is executed after the code in the try block or after the code in the catch block that handles an exception. If no catches match the thrown exception, the finally block is called before the function exits.
4: What exception does the InnerException property contain?
A4: It points to the previous exception in a chain of exceptions.

Get Sams Teach Yourself Visual C++® .NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.