define encapsulation
Answers
Answered by
2
In object-oriented programming (OOP), encapsulation refers to the bundling of data with the methods that operate on that data, or the restricting of direct access to some of an object's components.[1] Encapsulation is used to hide the values or state of a structured data object inside a class, preventing unauthorized parties' direct access to them. Publicly accessible methods are generally provided in the class (so-called "getters" and "setters") to access the values, and other client classes call these methods to retrieve and modify the values within the object.
PLEASE MARK AS BRAINLIEST
Answered by
4
Explanation:
The succinct expression or depiction of the essential features of something is called encapsulation.
Similar questions