Class-based programming: Difference between revisions

Content deleted Content added
Removed random and _very_ obvious spam/commercial plug for crappy book by some indian dude
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==