code-snipplet|| Imediated value

# immediate values
# e.g. true, false and Integers
a = true # => true
b = true # => true

def a.foo 
  "bar"
end

a.foo # => "bar"
b.foo # => "bar"

# referenced values
c = "foo" # => "foo"
d = "foo" # => "foo"

def c.meep
 "blubb"
end

d.meep # => undefined method

你可能感兴趣的:(java,C++,c,C#)