+ 1
encapsulation makes code more flexible or easier to change?
In the summary section, solo-learn says encapsulation creates "more flexible and easily changed code," but I thought encapsulation would make changing code more challenging because you'll have to use getter/setter to do so? In other words, how does encapsulation make it easier to change code?
1 Réponse
0
any one can write example programme on encapsulation