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" a good programming language? Explain
What is a guard statement?
What is nsdictionary in swift?
Why is swift important?
What is the meaning of question mark "?" In swift?
What is de-initializer and how it is written in Swift?
What type of objects are basic data types in swift?
How do you make a swift bridging header?
What are the different floating point numbers in swift?
What are functions in swift?
How to convert nsmutablearray to swift array in swift?
What are type methods in swift?