Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
10 Cards in this Set
- Front
- Back
class
|
Tell python to make a new kind of thing
|
|
object
|
two meanings: the most basic kind of thing, and any instance of some thing
|
|
instance
|
what you get when you tell Python to create a Class
|
|
def
|
how you define a function inside a class
|
|
self
|
inside the functions in a class, self is a variable for the instance/object being accesseed
|
|
inheritance
|
the concept that one class can inherit traits from another class, much like you and your parents
|
|
composition
|
the concept that a class can be composed of other classes as parts, much like how a car has wheels
|
|
attribute
|
a property that classes have that are from composition and that are usually variables
|
|
is-a
|
a phrase to say that something inherits from another, as in a salmon Is-a fish
|
|
has-a
|
a phrase to say that something is composed of other things or has a trait, as in a salmon has-a mouth
|