Chapter 15 Classes and Objects Flashcards
What is it called when you create a new object?
instantiation
An object that belongs to a class.
instance
The prefix 0x means?
The following number is hexadecimal.
You can assign values to an instance by using?
dot notation
»> blank.x = 3.0
»> blank.y = 4.0
A state diagram that shows an object and its attributes is called?
An object diagram
An object that is an attribute of another object is called what?
embedded
A programmer-defined type. A “ “ definition creates a new class object.
class
An object that contains information about a programmer-defined type. The
“ “ “ “ can be used to create instances of the type.
class object
One of the named values associated with an object.
Attribute (pronounced At-tribute)
An object that is stored as an attribute of another object.
embedded object
Define shallow copy
To copy the contents of an object, including any references to embedded
objects; implemented by the copy function in the copy module.
Define deep copy
A deep copy copies the contents of an object, any objects embedded in them, and everything else. Use the deepcopy function to accomplish this.