- Example

The example in this lesson shows the deterministic behavior of RAII in C++.

We'll cover the following...

Example - RAII

RAII stands for Resource Acquisition Is Initialization, and it is one of the most important idioms in C++. It states that a resource should be acquired in the constructor of the object and released in the destructor of ...