Is it impossible to override a constant stored property?

旧城冷巷雨未停 提交于 2020-01-14 13:58:29

问题


I know (from the compiler's errors) that a constant property cannot be overridden by a constant, nor can it be overridden by the getter of a computed property. Obviously they can't be overridden by anything non-constant. There's no reason to add observers to them, either, since they'll never change. And yet final let seems to be a thing.

Is it impossible to override a stored constant property? Is final let exactly equivalent to let?

来源:https://stackoverflow.com/questions/35671819/is-it-impossible-to-override-a-constant-stored-property

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!