• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/6

Click to flip

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;

6 Cards in this Set

  • Front
  • Back

class X (Y)

Make a class X that Is-a Y

class X (object): def __init__(self,J)

Class X Has-a __init __ that takes self and J parameters

class X ( object ) : def M (self, J )

Class X Has-a function that takes self and J

foo = X()

Set foo to an instance of class X

foo.M(J)

From foo, get the M function and call it with parameter J

foo.K = Q

Set attribute K, from object foo to Q