okkero
03/16/2017, 10:28 AMfinal
in Kotlin does not mean the same as final
in Java
A val
property's value cannot be changed, sure. But that is not what final
means for a Kotlin property. Putting final
on a property means it cannot be overridden in a subclass, and without allopen
that only makes sense for inherited properties