Yes, it is wrong because access modifiers have nothing to do with data consistency, but with visibility. Well-used access modifiers help in the encapsulation of their classes and methods, as well as in the polymorphism and in the organization of the code itself.
Yes, it’s wrong to say that.
– Victor Stafusa
It is wrong, also because access modifiers are attributes: https://answall.com/q/269089/101
– Maniero
Yes, it is wrong because access modifiers have nothing to do with data consistency, but with visibility. Well-used access modifiers help in the encapsulation of their classes and methods, as well as in the polymorphism and in the organization of the code itself.
– StatelessDev