Encapsulation is the process of combining
data (
attributes) and
functions (behavior in the form of
code) into an
object. The data and the functions are closely coupled within an object. Instead of every
programmer being able to access the data within a
structure using her own way, programmers have to use the code connected with that data. This promotes code reuse and standarized methods of working with the data.
Para; Robin Burk