Scope modifiers: Difference between revisions

Content added Content deleted
(Added Quackery.)
(PascalABC.NET)
Line 1,117:
// `nestedProcedure`, `commonTask`, `fooBar` and `super` are available
end;</syntaxhighlight>
 
=={{header|PascalABC.NET}}==
<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}}==