Ex. 41 - Phrase Drills Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

class X < y

A

“Make a class named X that is-a Y.”

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

class X: def initialize(J)

A

“class X has-a initialize that takes a J parameter.”

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

class X: def M(J)

A

“class X has-a function named M that takes a J parameter.”

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

foo = X.new()

A

“Set foo to an instance of class X.”

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

foo.M(J)

A

“From foo, get the M function, and call it with parameter J.”

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

foo.K = Q

A

“Fromm foo, get the K attribute, and set it to Q.”

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