Class-based programming: Difference between revisions

Content deleted Content added
Undid revision 594473100 by 111.93.30.67 (talk)revert vandalism by IP (that is now blocked for same)
Line 7:
 
==Encapsulation==
[[Information hiding|Encapsulation]] prevents users from breaking the [[Invariant (computer science)|invariants]] of the class, which is useful because it allows the implementation of a class of objects to be changed for aspects not exposed in the interface without impact to user code. The definitions of encapsulation focus on the grouping and packaging of related information ([[cohesion (computer science)|cohesion]]) rather than security issues. OOP languages do not normally offer formal security restrictions to the internal object state. Using a method of access is a matter of convention for the interface design.
 
==Inheritance==