classes and objects Flashcards

1
Q

block of code

A

all text wrapped by brackets plus the command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

scope of identifiers

A

coding space in which identifiers can be seen or used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

objects

A

one instance of a class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

two basic parts of an object

A

method - what it can do

attributes - what it has

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

class

A

the data type of an object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly