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
How multiple line comment can be written in swift?
What collection types are available in swift?
What is abstract class in swift?
Is "swift" a good programming language? Explain
What is mvc architecture in swift?
What is enum in swift?
Who calls the main function of our app during the app launch cycle?
How many types of closures are there in swift?
How long does a swift transfer take?
What is type aliasing in swift?
What is mutating keyword in swift?
What is the synonym of swift?
Does apple use swift internally?
What is the difference between function and method in swift?
What is retain in swift?