In computer science, the object lifetime (or life cycle) of an object in object-oriented programming is the time between an object's creation (also known as instantiation or construction) till the object is no longer used, and is destructed or freed.
In object-oriented programming (OOP), the meaning of creating objects is far more subtle than simple allocating of spaces for variables. First, this is because, in the OOP paradigm, the lifetime of each object tends to vary more widely than in the case in conventional programming. There are many subtle questions, including whether the object be considered alive in the process of creation, and concerning the order of calling initializing code. In some sense, the creation can happen before the beginning of the program when objects are placed in a global scope.
Read more about Object Lifetime: Creating Objects, Destroying Objects
Famous quotes containing the words object and/or lifetime:
“Perchance the time will come when every house even will have not only its sleeping-rooms, and dining-room, and talking-room or parlor, but its thinking-room also, and the architects will put it into their plans. Let it be furnished and ornamented with whatever conduces to serious and creative thought. I should not object to the holy water, or any other simple symbol, if it were consecrated by the imagination of the worshipers.”
—Henry David Thoreau (18171862)
“It is well worth the efforts of a lifetime to have attained knowledge which justifies an attack on the root of all evilviz. the deadly atheism which asserts that because forms of evil have always existed in society, therefore they must always exist; and that the attainment of a high ideal is a hopeless chimera.”
—Elizabeth Blackwell (18211910)