#!/usr/local/bin/ruby i = 100 @i = 555 class C def initialize() @i = "ok" end def get_i() return @i end end class Sub < C end sub = Sub.new() p(sub.get_i())