Imagine that you save John in a database.
One year later, you load John from the database.
How old is John, now?
44! But if you do `john.age`, you get the value 43 back!
The age of John represents a dynamic value that depends on the current date!
How do we fix this?
One year later, you load John from the database.
How old is John, now?
44! But if you do `john.age`, you get the value 43 back!
The age of John represents a dynamic value that depends on the current date!
How do we fix this?
That's it for now!
`property` can be quite useful, so look out for opportunities to use it!
If this thread was useful, follow me @mathsppblog for more!
If you have any questions or comments, add them at the beginning of the thread ๐
`property` can be quite useful, so look out for opportunities to use it!
If this thread was useful, follow me @mathsppblog for more!
If you have any questions or comments, add them at the beginning of the thread ๐
Loading suggestions...