Class variables

    1. class Parent
    2. @@numbers = [] of Int32
    3. def self.numbers
    4. @@numbers
    5. end
    6. class Child < Parent
    7. end
    8. Child.numbers # => []
    9. Parent.numbers << 1
    10. Parent.numbers # => [1]
    11. Child.numbers # => []