Explain what Lazy stored properties is and when it is useful?
Answer Posted / 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 |
Post New Answer View All Answers
What is dynamic keyword in swift?
How can you write a comment in swift?
Is "swift" a good programming language? Explain
What are the various ways to unwrap an optional in swift?
What is framework in swift?
What is a guard statement?
What is static in swift?
Is swift open source?
What is a swift class?
What is a swift protocol?
How does a swift transfer work?
Explain completion handler?
How do I add a header in swift?
How can you write a multiple line comment swift?
What is enum in swift?