Encapsulation in Oop's

Total Post:7


 483  View(s)
Rate this:

What is meaning of Encapsulation ? Please described in details of Oop's too.

  1. Re: Encapsulation in Oop's

    Encapsulation :

             This is the one of the main principle from oop's concept.it's hiding the the data and keep  synonymous. It is internal representation of an object can't be seen from outside of the object definition. 

    __(underscore) : representation for hiding data.

    Private date_A

    Special methods use by Encapsulation : 

    1- Getters : gets() 

    2- Setters : set()

    in C++ its called Public key ,in Java Private key ,in Python Protected Keywords. 

    Pseudo code: 

    Class Encapsulation (object): 

    Happy Coding :)


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.