0
Why is Encapsulation really important? I get that it hides our data, it provides flexibility etc, but why is is so important?
2 Antworten
+ 3
Encapsulation promotes maintenance. Code changes can be made independently.
0
Could you please go in depth??
basically, why should we use getters ans setters instead of constructors when they can do the same thing?