Word Drills - Reversed Flashcards
1
Q
Tell Python to make a new kind of thing
A
class
2
Q
Two meanings:
- The most basic kind of thing
- Any instance of some thing
A
object
3
Q
What you get when you tell Python to create a class
A
instance
4
Q
How you define a function inside a class
A
def
5
Q
Inside the function in a class, ?…?is a variable for the instance/object being accessed.
A
self
6
Q
The concept that one class can inherit traits from another class
A
inheritance
7
Q
The concept that a class can be composed of other classes as parts
A
composition
8
Q
A property classes have that are from composition and are usually variables.
A
attribute
9
Q
A phrase to say that something inherits from another
A
is … a
10
Q
A phrase to say something is composed of other things or has a trait
A
has … a