Podcast
Questions and Answers
In Ruby, how are local variables named?
In Ruby, how are local variables named?
- With 'hash' signs (#)
- With 'at' signs (@)
- With 'dollar' signs ($)
- With 'normal' names (correct)
What is the naming convention for instance variable names in Ruby?
What is the naming convention for instance variable names in Ruby?
- Start with 'at' signs (@@) (correct)
- Start with 'dollar' signs ($)
- Start with 'hash' signs (#)
- Start with 'normal' names
What is the naming convention for class variable names in Ruby?
What is the naming convention for class variable names in Ruby?
- Start with 'normal' names
- Start with 'hash' signs (#)
- Start with 'dollar' signs ($)
- Start with 'at' signs (@@) (correct)
How are instance methods defined in Ruby?
How are instance methods defined in Ruby?
What is the name of the constructor method in Ruby classes?
What is the name of the constructor method in Ruby classes?