I think that's because val creates the getter for ...
# getting-started
j
I think that's because val creates the getter for you since it's public, declare it private and then you will not have any getter and you will be able to write your own