Saturday, October 28, 2017

Encapsulation

Encapsulation:
o      Combine data and functions into a single unit (called class) known as encapsulation.
o      Encapsulation is most important features of class. By which we can combine data and functions in one unit.
o      Using encapsulation we can hide data from outside world.
o      To hide data from direct access by program is known as data hiding or information hiding.

No comments:

Post a Comment