ForNext
Only Do What Only You Can Do
127. class definition
VBScript
JScript
Perl
PHP
Python
Ruby
PowerShell
Scala
class Counter { private var n = 0 def incr(): Unit = { n = n+1 } def get(): Int = { n } }
F#
OCaml
class counter = object val mutable n = 0 method incr = n <- n+1 method get = n end;;