Answers

Question and Answer:

  Home  Swift Developer

⟩ Tell us what Lazy stored properties are and when they are useful?

Lazy stored properties are used for a property whose initial values are not set until the first time it is used . You can declare a lazy stored stored property by writing the lazy modifier before its declaration. Lazy properties are useful when the initial value of a property is reliant on outside factors whose values are unknown.

 179 views

More Questions for you: