Data encapsulation: Difference between revisions

Content deleted Content added
Radagast83 (talk | contribs)
mNo edit summary
Selket (talk | contribs)
nominated for deletion: see Wikipedia:Articles for deletion/Private (Java) -- replaced merge tag
Line 1:
<!-- Please do not remove or change this AfD message until the issue is settled -->{{#ifeq:{{FULLPAGENAME}}|Special:Undelete| |{{#if:{{{nosubst|}}}|<div style="display:none;">}} {{#ifeq:{{NAMESPACE}}||{{#switch:{{NAMESPACE}}|= |#default={{error:wrong namespace}}<div style="display:none;">}}|{{error:not substituted|AFD}}<div style="display:none;">}}}} {{#if:{{{nosubst|}}}|</div></div>}}
{{Mergeto|Java syntax|date=March 2006}}
<div class="boilerplate metadata" id="afd" style="margin: 0 5%; padding: 0 7px 0px 7px; background: #EDF1F1; border: 1px solid #999999; text-align: left; font-size:95%;">
'''This article is being considered for deletion in accordance with Wikipedia's [[Wikipedia:Deletion policy|deletion policy]][[Template:Afd|.]]'''<br />
You may share your thoughts on the matter at '''[[Wikipedia:Articles for deletion/{{{1|Private (Java)}}}|this article's entry]]''' on the [[Wikipedia:Articles for deletion|Articles for deletion]] page.<br />
Please improve the article if possible, but the article must not be blanked, and this notice must not be removed, until the discussion is closed. For more information, particularly on merging or moving the article during the discussion, read the [[Wikipedia:Guide to deletion|guide to deletion]].<br/>
----
<small>''[[Template:AfD footer|Steps to list an article for deletion]]: &#123;&#123;subst:afd&#125;&#125; • [http://en.wikipedia.org/w/index.php?action=edit&preload=Template:Afd2+starter&editintro=Template:Afd3+starter&title=Wikipedia:Articles+for+deletion/{{PAGENAMEE}} Preloaded debate] ''OR'' &#123;&#123;subst:afd2|pg={{PAGENAME}}|cat=|text=}} &#126;&#126;&#126;&#126; • &#123;&#123;subst:afd3|pg={{PAGENAME}}}} [{{SERVER}}{{localurl:Wikipedia:Articles for deletion/Log/{{CURRENTYEAR}}_{{CURRENTMONTHNAMEGEN}}_{{CURRENTDAY}}|action=edit}} log]
</small></div>
{{#ifeq:{{NAMESPACE}}||{{#switch:{{NAMESPACE}}|= |#default=</div>}}|</div>}}
{{{category|[[Category:Articles for deletion]]}}}
<!-- End of AfD message, feel free to edit beyond this point -->
The [[Java (programming language)|Java programming language]] allows the programmer to encapsulate data. Encapsulation of data is done to protect the data. If you are writing a piece of software with delicate data, such as a length and width of a window, you can prefix a variable declaration with the keyword "private". The piece of data that has been declared private will only be viewable by methods and constructors from within the same class.