fn
and the method name.u
of type User
. Note that the method has_birthday()
has a mut
receiver, this is needed here since we want to change its data. The convention of V is not to use receiver names like self
, this
or similar things but a short, preferably one letter long, name.Person
that determines whether a person is underage or not.Animal
has fur or not.