#**ex41 (text)**

#words
class - a blueprint for an object
object - the thing you make with the class blueprint
instance - a unique object from a class
def - how you define a function inside a class
self - inside a function in a class, use self to make it clear you're referring to an instance variable
inheritance - one class can be derived from another class
composition - one class can have other classes as parts
attribute - a property of a class, usually a variable
is-a - the inheritance relationship (mammal is an animal)
has-a - the composition relationship (orca has a tongue)

#phrases
class X(Y)
- make a class named X that is-a Y

class X(object): def __init__(self, J)
- class X has a constructor that takes itself and a J parameter

class X(object): def M(self, J)
- class X has a function named M that takes itself and a J parameter

foo = X()
- set foo to an instance of class X

foo.M(J)
- from foo get the M function and call it with parameter(s self and) J

foo.K = Q
- from foo get the K attribute and set it to Q