OOPS Word Drill Flashcards

(9 cards)

1
Q

Class

A

Tell Python to make a new type of thing

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

Object

A

Two meanings: the most basic type of things and any instance of some thing

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

Instance

A

What you get when tell Python to create a class.

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

Self

A

Inside the functions in a class, self is variable for then instance/object being accessed.

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

Inheritance

A

The concept that a class can inherit traits from another class, much like you and your parents

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

Composition

A

The concept that a class can be composed of other classes as parts, much like how a car has wheels

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

Attribute

A

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

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

is-a

A

A phrase to say that something inherits from another, as in “salmon” is-a “fish”

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

has-a

A

A phrase to say that something is composed of other things or has a trait, as in “a salmon has-a mouth.”

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