Hour 5

1: When is an managed object destroyed?
A1: There is no way to know for sure. The only thing you know as a developer is that the object is destroyed sometime after your application is done using it.
2: How many .NET languages can mix managed and unmanaged code?
A2: Only Visual C++ .NET allows for mixing managed and unmanaged code.
3: What is the feature of the CLR that keeps memory clean?
A3: The garbage collector.

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.