Mod 1 Flashcards
are what allows us to store data in Ruby, containers
variable
a packet of instructions, a set of reusable code
methods
an input to a method
argument
guides for method, place hold for arguments
parameters
the result/ output of a method
return value
piece of data
object
running a command
execute
where less complex functionality is exposed in an interface and more complex functionality is suppressed
abstraction
why do we use methods
streamline, reusability, faster, DRY
how does abstract help us code
keeps complexity from users
is a description of how something should behave
Class
A type of of object (blueprint)
class
piece of data
object
a specific object (built from blueprint)
Instance
noun- what an object ‘is’, attributes that describe object
state
verb- what an object ‘does’ or what ‘can be done’ to an object, Methods that model object behavior
behavior