Showing posts with label Encapsulation. Show all posts
Showing posts with label Encapsulation. Show all posts

Monday, April 6, 2009

Encapsulation

Encapsulation simply means the hiding of data and functionality from a client. On the simplest level, we encapsulate data by declaring properties private or protected. By hiding a property from client ode, we enforce an interface and prevent the accidental corruption of an object's data.