Chapter 15 Flashcards
class
a user-defined type. a class definition creates a new class object.
class object
an object that contains information about a user-defined type. the class object can be used to create instances of the type.
instance
an object that belongs to a class.
attribute
one of the named values associated with an object.
embedded (object)
an object that is stored as an attribute of another object.
shallow copy
to copy the contents of an object, including any references to embedded objects; implemented by the copy function in the copy module.
deep copy
to copy the contents of an object as well as any embedded objects, and any objects embedded in them, and so on; implemented by the deepcopy function in the copy module.
object diagram
a diagram that shows objects, their attributes, and the values of the attributes.