Chapter 12
Chapter 12
Constructor operation
Used to create a new object
Destructor operation
Used to destroy (delete) an object
Modifier operations
Modify the state of an object
Retrieve operation
Dot notation to apply operations to object
Transient objects
Exist in executing program
Disappear once program terminates
Persistent objects
Stored in database, persist after program termination
Naming mechanism: object assigned a unique name
in object base, user finds object by its name
Reachability: object referenced from other persistent
objects, object located through references