Sunday 18 September 2016

Encapsulation

Encapsulation

What is encapsulation?
  • Encapsulating data(variables) and corresponding the methods into a single unit.
  • Central concept of Encapsulation is hiding the data behind the methods.
Example: A class is best example for Encapsulation.

Thanks for your time.
Nireekshan