What is the use of “static” keyword if “let” keyword used to define constants/immutables in swift?

后端 未结 6 495
无人共我
无人共我 2020-12-07 09:40

I\'m little bit confused about using static keyword in swift. As we know swift introduces let keyword to declare immutable objects. Like de

6条回答
  •  悲哀的现实
    2020-12-07 10:23

    [Swift's property]
    [var vs let]
    [class vs static]

    In a nutshell class and static are type property and belongs to Type in a single copy

提交回复
热议问题