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 |
Is swift open source?
Does swift have a runtime?
What is differences in swift 1.x, 2.x, 3.x, 4.x?
Difference in classes and structures in swift?
What are the best ways of achieving concurrency in ios?
What is thread in swift?
What language is swift written?
List the features of swift programming?
What is an in-out parameter in swift?
Why we use delegates in swift?
What is clean swift architecture?
What is the use of continue statement in swift loop?