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 opinion which is fated to be ultimately agreed to by all who investigate, is what we mean by the truth, and the object represented in this opinion is the real. That is the way I would explain reality.
    Charles Sanders Peirce (1839–1914)

    Both cultures encourage innovation and experimentation, but are likely to reject the innovator if his innovation is not accepted by audiences. High culture experiments that are rejected by audiences in the creator’s lifetime may, however, become classics in another era, whereas popular culture experiments are forgotten if not immediately successful. Even so, in both cultures innovation is rare, although in high culture it is celebrated and in popular culture it is taken for granted.
    Herbert J. Gans (b. 1927)