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 is nil in swift?
What is mvc in swift?
How should errors be handled in swift?
What is swift nsarray?
Is swift difficult to learn?
What is base class in swift?
Why do we use swift?
What is lazy loading in ios swift?
What is a deinitializer in swift?
Explain what Lazy stored properties is and when it is useful?
What are regular expression and responder chain in swift?
Is swift coding easy?