classes and objects Flashcards
1
Q
block of code
A
all text wrapped by brackets plus the command
2
Q
scope of identifiers
A
coding space in which identifiers can be seen or used
3
Q
objects
A
one instance of a class
4
Q
two basic parts of an object
A
method - what it can do
attributes - what it has
5
Q
class
A
the data type of an object
6
Q
caller/callee
A
caller - method that is calling other method
callee - method receiving the call
callee RETURNS code execution to caller after it is done
7
Q
class constructor
A
used to make new instances (objects) of a class
default constructor - no arguments, set all attributes to 0 or empty