Scope modifiers: Difference between revisions
Content deleted Content added
Added Quackery. |
|||
(One intermediate revision by the same user not shown) | |||
Line 1,117:
// `nestedProcedure`, `commonTask`, `fooBar` and `super` are available
end;</syntaxhighlight>
=={{header|PascalABC.NET}}==
Here are visibility modifiers for class members:
<syntaxhighlight lang="delphi">private</syntaxhighlight>
Can only be seen inside of declared class and everywhere in a unit
<syntaxhighlight lang="delphi">protected</syntaxhighlight>
Can be seen in descendent classes and everywhere in a unit
<syntaxhighlight lang="delphi">public</syntaxhighlight>
Can be seen from everywhere
<syntaxhighlight lang="delphi">internal</syntaxhighlight>
Same visibility as public, but inside the assembly. Outside the assembly same as private.
=={{header|Perl}}==
|