Wednesday, May 8, 2024

📑 Read-Write Attributes

📑 Task

1) The 'id' attribute is directly accessible and modifiable by the user
How this type of attributes is usually named?
2) Can you create another class that restricts access to
the id attribute for reading, making it write-only?
It will be great if you do this with additional hashing functionality.

📑 Answer

1) They are named 'read-write attributes' very often
2)

No comments:

Post a Comment