C++ · Structs and classes
An object can clean up after itself when it ends, and knowing when that happens tells you when its memory or file is let go.