Access modifiers

Asked

Viewed 66 times

0

It is wrong to claim that access modifiers control the attributes and methods of a class, avoiding inconsistency in values and objects ?

  • Yes, it’s wrong to say that.

  • It is wrong, also because access modifiers are attributes: https://answall.com/q/269089/101

  • 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.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.