Encapsulation (computer programming): Difference between revisions

Content deleted Content added
m Replace magic links with templates per local RfC and MediaWiki RfC
Kp
Tags: Mobile edit Mobile web edit
Line 8:
The second definition is motivated by the fact that in many of the OOP languages hiding of components is not automatic or can be overridden; thus, [[information hiding]] is defined as a separate notion by those who prefer the second definition.<!-- this is based on all the refs given above, so no inline cite here-->
 
The features of encapsulation are supported using classes in mostomost object-oriented programming languages, although other alternatives also exist.k
 
== An information-hiding mechanism ==