Explain what Lazy stored properties is and when it is useful?
Answer / iosraj
Lazy stored properties are used for a property whose initial values is not calculated until the first time it is used. You can declare a lazy stored property by writing the lazy modifier before its declaration. Lazy properties are useful when the initial value for a property is reliant on outside factors whose values are unknown.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the different control transfer statements used in swift?
What is swift programming?
How to declare an empty dictionary in swift?
What are properties in swift?
What are lazy stored properties, and how are they useful?
What is the difference between swift and ‘objective-c’ language?
Why do we need closure in swift?
What are the different collection types available in swift?
In Swift enumerations, what’s the difference between raw values and associated values?
Explain the different features of swift programming language?
What is a guard statement? What is the benefit of using guard statement in swift?
What is a function in swift?