What is encapsulation?
Encapsulation means characteristics and behavior are
combined in one unit. In other words, encapsulation is the way of combining
both data (characteristics) and the function (behavior) that operates on that
data under a single unit.
The wrapping up of
the data into a single unit is known as encapsulation.
No comments:
Post a Comment