4 ms·
True it requires classes as RAII is based on a destructor. However this doesn't require OOP design, which typically is associated with classes and objects.
by johannes1234321 8y ago
True it requires classes as RAII is based on a destructor. However this doesn't require OOP design, which typically is associated with classes and objects.
- jeremyjh 8y agoYou don't have to use inheritance, but you will certainly use object composition and encapsulation to manage the lifetimes of your data in a coherent way.