Shared Flashcard Set

Details

OOP Phrase Drills
Code phrases and their English translation
6
Computer Science
Not Applicable
04/02/2014

Additional Computer Science Flashcards

 


 

Cards

Term
class X(Y)
Definition
Make a class named X that is-a Y
Term
class X(object):def__init__(self, J)
Definition
class C 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
foo = X()
Definition
Set 'foo' to an instance of class X.
Term
foo.M(J)
Definition
From 'foo' get the M function, and call it with parameters self, J
Term
foo.K = Q
Definition
From 'foo' get the K attribute and set it to Q
Supporting users have an ad free experience!