Object Lifetime

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:

    “The sick man is taken away by the institution that takes charge not of the individual, but of his illness, an isolated object transformed or eliminated by technicians devoted to the defense of health the way others are attached to the defense of law and order or tidiness.”
    —Michel de Certeau (1925–1986)

    “The greatest part of each day, each year, each lifetime is made up of small, seemingly insignificant moments. Those moments may be cooking dinner...relaxing on the porch with your own thoughts after the kids are in bed, playing catch with a child before dinner, speaking out against a distasteful joke, driving to the recycling center with a week’s newspapers. But they are not insignificant, especially when these moments are models for kids.”
    —Barbara Coloroso (20th century)