5 lines
107 B
OCaml
5 lines
107 B
OCaml
class my_class =
|
|
object (self)
|
|
val mutable variable = 0
|
|
method some_method = variable <- 1
|
|
end
|