Searching for: Class Variables in Ruby
Class and Instance Variables
Used declare variables within a class. There are two main types: class variables, which have the same value across all class instances (i.e. static variables), and instance variables, which have different values for each object instance.
Local Variable Declaration
Used to declare a variable outside of a class.
Inheritance is used to inherit another class' members, including fields and methods. A sub class extends a super class' members.
A function is a block of code that can be called from another location in the program or class.
Next Page >