What is encapsulation?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is encapsulation?
Rating:
Encapsulation is a technique used for hiding the properties and behaviors of an object and allowing outside access only as appropriate. It prevents other objects from directly altering or accessing the properties or methods of the encapsulated object. Although PowerBuilder allows encapsulation, it does not enforce it. Encapsulation can be implemented by declaring instance variables as private or protected, and by creating object functions to provide selective access to the instance variables.
Encapsulation provides the following benefits:
Rating:
Was this information helpful?