Anonymous user
Scope modifiers: Difference between revisions
Scala added
(add actual →Pascal: example) |
(Scala added) |
||
Line 1,431:
Ruby is an open language. Declaring methods private prevents inadvertend use of methods not meant to be used outside a class. However it is easy to circumvent with metaprogramming methods like <code>instance_eval</code>.
=={{header|Scala}}==
In the [https://www.scala-lang.org/files/archive/spec/2.13/05-classes-and-objects.html#modifiers Language Specification] is exactly defined what the 3 Access modifiers do.
=={{header|Tcl}}==
===Variables===
|