Word Drills - Reversed Flashcards

1
Q

Tell Python to make a new kind of thing

A

class

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

Two meanings:

  1. The most basic kind of thing
  2. Any instance of some thing
A

object

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

What you get when you tell Python to create a class

A

instance

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

How you define a function inside a class

A

def

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

Inside the function in a class, ?…?is a variable for the instance/object being accessed.

A

self

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

The concept that one class can inherit traits from another class

A

inheritance

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

The concept that a class can be composed of other classes as parts

A

composition

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

A property classes have that are from composition and are usually variables.

A

attribute

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

A phrase to say that something inherits from another

A

is … a

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

A phrase to say something is composed of other things or has a trait

A

has … a

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