With ASP.NET's focus on OOP code, it is imperative that developers are familiar with OOP concepts. Transactional File Mgt. The interface to each module is defined in such a way as to reveal as little as possible about its inner workings. Object-Oriented Analysis, 2nd ed. This article attempts to explain the concept of Encapsulation in a OO environment.
Encapsulation is the ability to hide the internal workings of an object's behavior and it's data.
This kind of behavior hiding is encapsulation and it makes programming much easier. Encapsulation goes hand in hand with placing your code into a component and using this component when needed. By placing the logic we need for similar processes into a component, we eliminate the need to rewrite that code throughout an application every time the process has to be modified. When we need to make a change to that process, we simply modify that component and the change is propagated throughout the application wherever you used the component. Ok, so now we have a general idea of what encapsulation means.