Skip to content

RAII

Acronym: Resource Acquisition is Initialization

In simple terms, this means that resource management is implicitly handled via object construction (Constructor) and destruction (Destructor).

RAII decouples resource management from business logic. It is not abstraction but encapsulation. Abstraction solves problems at the Software Design level. Encapsulation deals with issues at the Implementation Details Level.