Object lifetime
Time period between the creation and destruction of an object-oriented programming instance
In object-oriented programming (OOP), object lifetime is the period of time between an object's creation and its destruction. In some programming contexts, object lifetime coincides with the lifetime of a variable that represents the object. In other contexts โ where the object is accessed by reference โ object lifetime is not determined by the...