When using encapsulation correctly y,hoew data be shared in external code?
Answers
Answered by
2
The answer is private variables.
When using encapsulation correctly, data can be shared in external code using private variables. Such variables can be accessed from only within their objects or classes. Their values cannot be modified from outside the class they are located. These variables are identified by using a couple of underscores before their names.
Similar questions