๐Ÿ”ฐcomputed property

โ•ฑ๐Ÿšง -> stored properties, keyword "let"

Swift โŸฉ properties โŸฉ computed property

  • Accessor is another name for a computed property.

  • A computed property doesnโ€™t store a value directly like the stored properties declared using let.

  • Computed properties use the var keyword because their value may vary depending on the results of the computation.

Last updated