Thursday, 7 July 2016

What is encapsulation?

Encapsulation is defined 'as the process of enclosing one or more items within a physical or logical package'. Encapsulation, in object oriented programming methodology, prevents access to implementation details.

Encapsulation is implemented by using access specifiers.

Access modifier :An access specifier defines the scope and visibility of a class member.

No comments:

Post a Comment