Section 1

Preview this deck

def

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (10)

Section 1

(10 cards)

def

Front

how you define a function

Back

is-a

Front

phrase to say something inherits from another (i.e. a "salmon" is-a "fish")

Back

object

Front

a basic type of thing; any instance of some thing

Back

instance

Front

what you get when you tell Ruby to create a class

Back

has-a

Front

a phrase to say something is composed of other things or has a trait (i.e. "a salmon has-a mouth)

Back

inheritance

Front

concept that one class inherits traits from another class

Back

@

Front

inside functions in a class; a variable for the instance/object being accessed

Back

composition

Front

concept that a class can be composed of other classes as parts (i.e. like how a car has wheels)

Back

attribute

Front

a property classes have that is from composition and are usually variables

Back

class

Front

tell Ruby to make a new type of thing

Back