Shows the RAII pattern in C++ using a stack-allocated object and the `Owned()` method for automatic cleanup.