Encapsulation (computer programming): Difference between revisions

Content deleted Content added
Just added a language that also uses this a lot.
Jamarr81 (talk | contribs)
Removed Historical importance: section for lack of credibility and being false/misleading; see Talk page for discussion. This page needs serious rework.
Line 155:
{ ... }
</source>
 
== Historical importance ==
The purpose of encapsulation (to classify) can be summarized to the following: to reduce collisions of identically named variables and to group together related methods (functions) and properties (variables) to comprise an object of class (like a family). This pattern of practice helps make source code with hundreds or thousands of lines of code more understandable and workable.
 
== General definition ==