Term
|
Definition
tells python to make anew kind of things |
|
|
Term
|
Definition
the most basic kind of class or any instance of some thing |
|
|
Term
|
Definition
what you get as a result of a class |
|
|
Term
|
Definition
|
|
Term
|
Definition
Inside the functions in a class, self is a variable for the instance/object being accessed. |
|
|
Term
|
Definition
The concept that one class can inherit traits from another class |
|
|
Term
|
Definition
the concept that a class can be composed of other classes as parts |
|
|
Term
|
Definition
a property classes have that a re from compositions and usually are variables |
|
|
Term
|
Definition
a phrase to say that something inherits from another. ex: a salmon is-a fish |
|
|
Term
|
Definition
a phrase to say that something is composed of other things or has a trait. ex: a salmon has-a mouth |
|
|
Term
|
Definition
Make a class named X that is-a Y" |
|
|
Term
class X(object): def__init__(self, J) |
|
Definition
"class X has-a __init__that takes self and J parameters" |
|
|
Term
class X(object): def M(self, J) |
|
Definition
"class X has-a function named M that takes self and J parameters." |
|
|
Term
|
Definition
"Set foo to an instance of class X" |
|
|
Term
|
Definition
"From foo get the M function, and call it with parameters self, J." |
|
|
Term
|
Definition
From foo get the K attribute and set it to Q." |
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|