Shared Flashcard Set

Details

Object Oriented Words to Know
List of words to better understand OOP
9
Computer Science
Not Applicable
04/02/2014

Additional Computer Science Flashcards

 


 

Cards

Term
Class
Definition
Tell Python to make a new kind of thing
Term
object
Definition
two meanings:
- The most basic kind of thing
- Any instance of some thing
Term
instance
Definition
What you get when you tell Python to create a class
Term
self
Definition
Inside the functions in a class, self is a variable for the instance/object being accessed
Term
inheritance
Definition
The concept that one class can inherit traits from another class, much like you and your parents
Term
composition
Definition
the concept that a class can be composed of other classes as parts, much like how a car has wheels
Term
attribute
Definition
A property class's have that are from composition and are usually variables
Term
is-a
Definition
A phrase to say that something inherits from another, as in a "salmon" is-a "fish."
Term
has-a
Definition
A phrase to say something is composed of other things or has a trait, as in "a salmon has-a mouth."
Supporting users have an ad free experience!