+ 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?

29th Sep 2016, 3:40 PM
Robert MontgomeryBurns
Robert MontgomeryBurns - avatar
1 Réponse
0
any one can write example programme on encapsulation
1st Mar 2017, 6:59 AM
Nagaraju Kandula
Nagaraju Kandula - avatar