fork download
  1. class C
  2. def initialize(v)
  3. @value = v
  4. end
  5. def show()
  6. p @value
  7. end
  8. end
  9. c1 = C.new(10)
  10. # p c1.value
  11. # c1.value = 20
  12. c1.show()
Success #stdin #stdout 0.01s 7452KB
stdin
Standard input is empty
stdout
10