stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Ruby Classes Flashcards | StudBud
Explore
/
Ruby Classes
Ruby Classes
8 terms
·
StudBud Administration
·
41 plays
Basic concepts for classes in Ruby #ruby #class #objects #fundamentals #programming
Flashcards
8 cards
F
Practice quiz
P
Host live
L
Questions
8
Answers
1
What keyword begins a ruby class definition?
none
class
object
def
2
Where should instance variables be initialised?
In the getter method
At the end of the class, outside of any method
At the top of the class, outside of any method
In the initialize method
3
What keyword ends a ruby class definition?
ssalc
stop
class
end
4
What method is used to create an instance of a class?
open
new
create
construct
5
How are instance variables made accessible outside the class?
accessor
attr_accessor
export
global
6
What method is called when a class is instantiated with new?
initialize
constructor
create_new
initialise
7
What kind of variables are accessible by all methods within a class?
local variables
object variables
class variables
instance variables
8
What syntax is used to define instance variables?
$
@
#
?