Assume that you have a Time class with a timeInterval attribute. You don't want to directly restrict access to this attribute, but set a red flag to indicate that it is best not to use it. What principle can help you to achieve our goal?
Encapsulation
Red flag
Report a typo
Select one option from the list
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.