Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
def dobyref(ref x as int):
        x = 4

x = 1
print x //-->1
dobyref(x)
print x //-->4

...

"self" is used to reference the current class. "self" is not required for boo buy but may be used to add clarity to the code. "self" is synonymous with the c# keyword "this".

...